We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79a3171 commit 2ee9cb0Copy full SHA for 2ee9cb0
.kokoro/java8/common.cfg
@@ -32,7 +32,7 @@ action {
32
# Set the JAVA VERSION env var.
33
env_vars: {
34
key: "JAVA_VERSION"
35
- value: "1.8"
+ value: "1.8, 11"
36
}
37
38
# Configure the docker image for kokoro-trampoline.
.kokoro/tests/run_tests.sh
@@ -110,7 +110,8 @@ for file in **/pom.xml; do
110
111
# Fail the tests if no Java version was found.
112
POM_JAVA=$(grep -oP '(?<=<maven.compiler.target>).*?(?=</maven.compiler.target>)' pom.xml)
113
- if [[ "$POM_JAVA" = "" ]]; then
+ ALLOWED_VERSIONS=("1.8" "11")
114
+ if [[ "$POM_JAVA" = "" ]] || [[ ! "${ALLOWED_VERSIONS[@]}" =~ "${POM_JAVA}" ]]; then
115
RTN=1
116
echo -e "\n Testing failed: Unable to determine Java version. Please set in pom:"
117
echo -e "\n<properties>"
0 commit comments