mirror of https://github.com/grpc/grpc-java.git
buildscripts: always make sure we are using jdk8 (#8800)
This commit is contained in:
parent
80f1be03f0
commit
e474e3dc7e
|
|
@ -24,6 +24,9 @@ fi
|
||||||
cd $(dirname $0)/../..
|
cd $(dirname $0)/../..
|
||||||
|
|
||||||
# TODO(zpencer): always make sure we are using Oracle jdk8
|
# 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 is x86_64 unless otherwise specified.
|
||||||
ARCH="${ARCH:-x86_64}"
|
ARCH="${ARCH:-x86_64}"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue