Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: rollback to Java 11 #30

Merged
merged 1 commit into from
Oct 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,31 +17,31 @@ sudo apt-get update --quiet && sudo apt-get upgrade -y

echo "+-----------------------------------------------------------------------------------------------------------------------------------------+"
echo "| |"
echo "| INSTALL JAVA 17 |"
echo "| INSTALL JAVA 11 |"
echo "| |"
echo "+-----------------------------------------------------------------------------------------------------------------------------------------+"

# Install Java for Jenkins: (https://adoptium.net/installation/linux/)

sudo apt-get install openjdk-11-jdk -y
# Ensure necessary packages are present:
sudo apt-get install -y wget apt-transport-https
# sudo apt-get install -y wget apt-transport-https

# Download the Eclipse Adoptium GPG key:
sudo mkdir -p /etc/apt/keyrings
wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | sudo tee \
/etc/apt/keyrings/adoptium.asc

# Configure the Eclipse Adoptium apt repository:
# To check the full list of versions supported take a look at the list in the tree at https://packages.adoptium.net/ui/native/deb/dists/.
# For Linux Mint (based on Ubuntu) you have to replace VERSION_CODENAME with UBUNTU_CODENAME.
echo "deb [signed-by=/etc/apt/keyrings/adoptium.asc] \
https://packages.adoptium.net/artifactory/deb \
$(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | sudo tee \
/etc/apt/sources.list.d/adoptium.list

# Install the Temurin version you require:
sudo apt-get update # required to refresh apt with the newly installed keys
sudo apt-get install temurin-21-jdk -y
# sudo mkdir -p /etc/apt/keyrings
# wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | sudo tee \
# /etc/apt/keyrings/adoptium.asc

# # Configure the Eclipse Adoptium apt repository:
# # To check the full list of versions supported take a look at the list in the tree at https://packages.adoptium.net/ui/native/deb/dists/.
# # For Linux Mint (based on Ubuntu) you have to replace VERSION_CODENAME with UBUNTU_CODENAME.
# echo "deb [signed-by=/etc/apt/keyrings/adoptium.asc] \
# https://packages.adoptium.net/artifactory/deb \
# $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | sudo tee \
# /etc/apt/sources.list.d/adoptium.list

# # Install the Temurin version you require:
# sudo apt-get update # required to refresh apt with the newly installed keys
# sudo apt-get install temurin-21-jdk -y

# Validate Java installation
JAVA=$?
Expand Down