Install JDK 17 on circleci
@@ -33,6 +33,15 @@ jobs:
_JAVA_OPTIONS: "-Xms1024m -Xmx2048m"
_SERVICE_OCCURENCE: 5
steps:
+ - run:
+ name: Install OpenJDK 17
+ command: |
+ wget -qO - https://adoptium.jfrog.io/adoptium/api/gpg/key/public | sudo apt-key add -
+ sudo add-apt-repository --yes https://adoptium.jfrog.io/adoptium/deb/
+ sudo apt-get update && sudo apt-get install temurin-17-jdk
+ sudo update-alternatives --set java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java
+ sudo update-alternatives --set javac /usr/lib/jvm/temurin-17-jdk-amd64/bin/javac
+ java -version
- checkout
- run:
name: Run regular tests
@@ -143,6 +152,15 @@ jobs:
_JAVA_OPTIONS: "-Xms2g -Xmx2g"
_SERVICE_OCCURENCE: 5
steps:
+ - run:
+ name: Install OpenJDK 17
+ command: |
+ wget -qO - https://adoptium.jfrog.io/adoptium/api/gpg/key/public | sudo apt-key add -
+ sudo add-apt-repository --yes https://adoptium.jfrog.io/adoptium/deb/
+ sudo apt-get update && sudo apt-get install temurin-17-jdk
+ sudo update-alternatives --set java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java
+ sudo update-alternatives --set javac /usr/lib/jvm/temurin-17-jdk-amd64/bin/javac
+ java -version
- checkout
- restore_cache:
keys:
