Skip to content

Commit 4cebefa

Browse files
authored
fix(java): java 17 dependency arguments (#1512)
1 parent ebe95ed commit 4cebefa

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.kokoro/dependencies.sh

+4-6
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,13 @@ function determineMavenOpts() {
3838
| sed -E 's/^(1\.[0-9]\.0).*$/\1/g'
3939
)
4040

41-
case $javaVersion in
42-
"17")
41+
if [[ $javaVersion == 17* ]]
42+
then
4343
# MaxPermSize is no longer supported as of jdk 17
4444
echo -n "-Xmx1024m"
45-
;;
46-
*)
45+
else
4746
echo -n "-Xmx1024m -XX:MaxPermSize=128m"
48-
;;
49-
esac
47+
fi
5048
}
5149

5250
export MAVEN_OPTS=$(determineMavenOpts)

0 commit comments

Comments
 (0)