buildscripts: always make sure we are using jdk8 (#8800)

This commit is contained in:
sanjaypujare 2022-01-04 13:01:02 -08:00 committed by GitHub
parent 80f1be03f0
commit e474e3dc7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,9 @@ fi
cd $(dirname $0)/../..
# TODO(zpencer): always make sure we are using Oracle jdk8
if [[ -f /usr/libexec/java_home ]]; then
JAVA_HOME=$(/usr/libexec/java_home -v"1.8.0")
fi
# ARCH is x86_64 unless otherwise specified.
ARCH="${ARCH:-x86_64}"