Merge "Add path to JDK 17" into main

pull/836/head
Don Turner 2 years ago committed by Gerrit Code Review
commit 8ee58cc79a

@ -36,7 +36,10 @@ echo y | ${ANDROID_HOME}/tools/bin/sdkmanager --licenses
cd $KOKORO_ARTIFACTS_DIR/git/nowinandroid cd $KOKORO_ARTIFACTS_DIR/git/nowinandroid
# The build needs Java 17, set it as the default Java version. # 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 # Also clear JAVA_HOME variable so java -version is used instead
export JAVA_HOME= export JAVA_HOME=

@ -1,2 +1,4 @@
# Location of the bash script. # 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