We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1f0421 commit cb27553Copy full SHA for cb27553
1 file changed
synthtool/gcp/templates/java_library/.kokoro/dependencies.sh
@@ -38,15 +38,13 @@ function determineMavenOpts() {
38
| sed -E 's/^(1\.[0-9]\.0).*$/\1/g'
39
)
40
41
- case $javaVersion in
42
- "17")
+ if [[ $javaVersion == 17* ]]
+ then
43
# MaxPermSize is no longer supported as of jdk 17
44
echo -n "-Xmx1024m"
45
- ;;
46
- *)
+ else
47
echo -n "-Xmx1024m -XX:MaxPermSize=128m"
48
49
- esac
+ fi
50
}
51
52
export MAVEN_OPTS=$(determineMavenOpts)
0 commit comments