Add path to JDK 17

Change-Id: If6fd6fab4517242f7bad9149ae2fdbdbbca7ef34
pull/836/head
Don Turner 2 years ago
parent 13a6f857fa
commit 8c9f656eec

@ -36,7 +36,10 @@ echo y | ${ANDROID_HOME}/tools/bin/sdkmanager --licenses
cd $KOKORO_ARTIFACTS_DIR/git/nowinandroid
# The build needs Java 17, set it as the default Java version.
sudo update-java-alternatives --set java-1.17.0-openjdk-amd64
sudo apt-get update
sudo apt-get install -y openjdk-17-jdk
sudo update-alternatives --set java /usr/lib/jvm/java-17-openjdk-amd64/bin/java
java -version
# Also clear JAVA_HOME variable so java -version is used instead
export JAVA_HOME=

@ -1,2 +1,4 @@
# Location of the bash script.
build_file: "nowinandroid/kokoro/build.sh"
build_file: "nowinandroid/kokoro/build.sh"
gfile_resources: "/x20/projects/java-platform/linux-amd64/jdk-17-latest"
Loading…
Cancel
Save