Skip to content
Snippets Groups Projects
Commit d59b1b7a authored by jez04's avatar jez04
Browse files

upgrade java to 21 and maven and eclipses to 2023-12

parent 9dd58fbc
No related merge requests found
......@@ -33,19 +33,19 @@ function installJavaVersion(){
function installJava(){
echo '============>Install java packages.....==========================================================================================================='
sudo apt -y install openjdk-8-jdk
installJavaVersion 17
installJavaVersion 21
echo '============>Java installed.==========================================================================================================='
}
function installJavaFX(){
echo '============>Install java FX.....==========================================================================================================='
# sudo apt -y install openjfx
wget https://download2.gluonhq.com/scenebuilder/20.0.0/install/linux/SceneBuilder-20.0.0.deb
sudo dpkg -i SceneBuilder-20.0.0.deb
rm SceneBuilder-20.0.0.deb
wget -O openjfx-20_linux-x64_bin-sdk.zip https://download2.gluonhq.com/openjfx/20.0.2/openjfx-20.0.2_linux-aarch64_bin-sdk.zip
sudo unzip -d /opt openjfx-20_linux-x64_bin-sdk.zip
rm openjfx-20_linux-x64_bin-sdk.zip
wget https://download2.gluonhq.com/scenebuilder/21.0.0/install/linux/SceneBuilder-21.0.0.deb
sudo dpkg -i SceneBuilder-21.0.0.deb
rm SceneBuilder-21.0.0.deb
wget -O openjfx-21_linux-x64_bin-sdk.zip https://download2.gluonhq.com/openjfx/21.0.2/openjfx-21.0.2_linux-x64_bin-sdk.zip
sudo unzip -d /opt openjfx-21_linux-x64_bin-sdk.zip
rm openjfx-21_linux-x64_bin-sdk.zip
echo '============>Java FX installed.==========================================================================================================='
}
......@@ -105,7 +105,6 @@ function eclipseChangeVm(){
sudo sed -i -e $substituteWorkspace /opt/eclipse-$suffix/$altConfigName.ini
}
function installPlugins(){
local suffix=$1
local repos=$2
......@@ -121,13 +120,21 @@ function installPlugins(){
<!-- encoders are by default assigned the type
ch.qos.logback.classic.encoder.PatternLayoutEncoder -->
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} -%kvp- %msg%n</pattern>
<pattern>aaa%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} -%kvp- %msg%n</pattern>
</encoder>
</appender>
<root level="info">
<appender-ref ref="STDOUT" />
</root>
<logger name="org.apache" level="WARN" />
<logger name="org.apache.http" level="WARN" />
<logger name="org.apache.hc.client5.http" level="WARN" />
<logger name="org.apache.hc.client5.http.wire" level="WARN" />
<logger name="org.apache.hc" level="WARN" />
<logger name="httpclient" level="WARN" />
</configuration>
EOF
......@@ -178,7 +185,7 @@ function installEclipseInstance(){
echo '============>Installing eclipse '$suffix' .....==========================================================================================================='
downloadAndExtractEclipse $suffix $url $altSrcDirName
echo '============>Change VM eclipse '$suffix' .....==========================================================================================================='
eclipseChangeVm $suffix \\/usr\\/lib\\/jvm\\/java-17-openjdk-amd64\\/bin $altRunName
eclipseChangeVm $suffix \\/usr\\/lib\\/jvm\\/java-21-openjdk-amd64\\/bin $altRunName
echo '============>Installing eclipse '$suffix' plugins .....==========================================================================================================='
installPlugins $suffix $repos $plugins $altRunName
doConfig $suffix $altRunName
......@@ -364,21 +371,21 @@ fi
EOF
sudo chmod +x /usr/share/maven/bin/student-setup
wget https://dlcdn.apache.org/maven/maven-3/3.9.4/binaries/apache-maven-3.9.4-bin.tar.gz
tar -xzf apache-maven-3.9.4-bin.tar.gz
rm apache-maven-3.9.4-bin.tar.gz
wget https://dlcdn.apache.org/maven/maven-3/3.9.6/binaries/apache-maven-3.9.6-bin.tar.gz
tar -xzf apache-maven-3.9.6-bin.tar.gz
rm apache-maven-3.9.6-bin.tar.gz
sudo rm -r /usr/share/maven/bin
sudo rm -r /usr/share/maven/boot
sudo rm -r /usr/share/maven/lib
sudo mv apache-maven-3.9.4/bin /usr/share/maven/bin
sudo mv apache-maven-3.9.4/boot /usr/share/maven/boot
sudo mv apache-maven-3.9.4/lib /usr/share/maven/lib
sudo cp -R apache-maven-3.9.4/conf/* /etc/maven/
sudo mv apache-maven-3.9.6/bin /usr/share/maven/bin
sudo mv apache-maven-3.9.6/boot /usr/share/maven/boot
sudo mv apache-maven-3.9.6/lib /usr/share/maven/lib
sudo cp -R apache-maven-3.9.6/conf/* /etc/maven/
sudo chown -R root:root /etc/maven/
sudo chown -R root:root /usr/share/maven/bin
sudo chown -R root:root /usr/share/maven/boot
sudo chown -R root:root /usr/share/maven/lib
rm -R apache-maven-3.9.4
rm -R apache-maven-3.9.6
echo '============>Maven installed.==========================================================================================================='
}
......@@ -581,11 +588,9 @@ function installEclipseSTS(){
function installEclipseJava(){
######Install Eclipse for JAVA development package
installEclipseInstance java https://ftp.fau.de/eclipse/technology/epp/downloads/release/2023-06/R/eclipse-java-2023-06-R-linux-gtk-x86_64.tar.gz \
"https://download.eclipse.org/releases/2023-06/,\
https://binaries.sonarsource.com/SonarLint-for-Eclipse/releases/8.0.0.80157/,\
https://download.eclipse.org/mylyn/incubator/latest/,\
https://download.eclipse.org/mylyn/releases/latest/,\
installEclipseInstance java https://ftp.halifax.rwth-aachen.de/eclipse/technology/epp/downloads/release/2023-12/R/eclipse-java-2023-12-R-linux-gtk-x86_64.tar.gz \
"https://download.eclipse.org/releases/2023-12/,\
https://binaries.sonarsource.com/SonarLint-for-Eclipse/releases/,\
https://download.eclipse.org/efxclipse/updates-released/3.9.0/site/,\
https://projectlombok.org/p2,\
https://ecd-plugin.github.io/update/" \
......@@ -597,8 +602,6 @@ org.eclipse.wb.core.ui.feature.feature.group,\
org.eclipse.wb.layout.group.feature.feature.group,\
org.eclipse.wb.core.java.feature.feature.group,\
org.eclipse.wb.swing.feature.feature.group,\
org.eclipse.mylyn_feature.feature.group,\
org.eclipse.mylyn.web.tasks_feature.feature.group,\
org.sonarlint.eclipse.feature.feature.group,\
org.sf.feeling.decompiler.feature.group,\
org.sf.feeling.decompiler.cfr.feature.group,\
......@@ -618,13 +621,11 @@ function installEclipsePapyrus(){
function installEclipseEE(){
######Install Eclipse for EE development package
installEclipseInstance ee https://mirror.dogado.de/eclipse/technology/epp/downloads/release/2023-09/R/eclipse-jee-2023-09-R-linux-gtk-x86_64.tar.gz \
"https://download.eclipse.org/releases/2023-09/,\
https://binaries.sonarsource.com/SonarLint-for-Eclipse/releases/8.0.0.80157/,\
installEclipseInstance ee https://ftp.halifax.rwth-aachen.de/eclipse/technology/epp/downloads/release/2023-12/R/eclipse-jee-2023-12-R-linux-gtk-x86_64.tar.gz \
"https://download.eclipse.org/releases/2023-12/,\
https://binaries.sonarsource.com/SonarLint-for-Eclipse/releases/,\
https://download.jboss.org/jbosstools/photon/stable/updates/,\
https://ecd-plugin.github.io/update/,\
https://download.eclipse.org/mylyn/incubator/latest/,\
https://download.eclipse.org/mylyn/releases/latest/,\
https://www.thymeleaf.org/eclipse-plugin-update-site/,\
https://projectlombok.org/p2,\
https://de-jcup.github.io/update-site-eclipse-yaml-editor/update-site/" \
......@@ -891,6 +892,26 @@ EOF
}
function update2024(){
#installJava
#uninstallJavaFX
#installJavaFX
#installMaven
removeEclipseInstance ee
installEclipseEE
removeEclipseInstance java
installEclipseJava
installLombok java
installLombok ee
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment