Add JDK 17 target (#9802)

* add JDK 17 target
This commit is contained in:
Elliotte Rusty Harold 2022-04-18 19:54:42 +00:00 committed by GitHub
parent 46ae74c55c
commit cc8ae4c154
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -190,6 +190,10 @@ build_golang() {
use_java() {
version=$1
case "$version" in
jdk17)
export PATH=/usr/lib/jvm/java-17-openjdk-amd64/bin:$PATH
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
;;
jdk11)
export PATH=/usr/lib/jvm/java-11-openjdk-amd64/bin:$PATH
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
@ -276,6 +280,11 @@ build_java_jdk8() {
build_java_with_conformance_tests
}
build_java_jdk17() {
use_java jdk17
build_java_with_conformance_tests
}
build_java_linkage_monitor() {
# Linkage Monitor checks compatibility with other Google libraries
# https://github.com/GoogleCloudPlatform/cloud-opensource-java/tree/master/linkage-monitor
@ -586,6 +595,7 @@ Usage: $0 { cpp |
java_jdk7 |
java_oracle7 |
java_jdk8 |
java_jdk17 |
java_linkage_monitor |
objectivec_ios |
objectivec_ios_debug |