Skip to content

Commit e474e3d

Browse files
authored
buildscripts: always make sure we are using jdk8 (grpc#8800)
1 parent 80f1be0 commit e474e3d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

buildscripts/kokoro/unix.sh

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ fi
2424
cd $(dirname $0)/../..
2525

2626
# TODO(zpencer): always make sure we are using Oracle jdk8
27+
if [[ -f /usr/libexec/java_home ]]; then
28+
JAVA_HOME=$(/usr/libexec/java_home -v"1.8.0")
29+
fi
2730

2831
# ARCH is x86_64 unless otherwise specified.
2932
ARCH="${ARCH:-x86_64}"

0 commit comments

Comments
 (0)