Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit e9261d2

Browse files
fix(java): java 17 dependency arguments (#740)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/ddaf03fb-6807-4c8a-bb78-a981cb7d36c9/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: googleapis/synthtool@cb27553
1 parent ed0df7d commit e9261d2

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.kokoro/dependencies.sh

Lines changed: 4 additions & 6 deletions
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)

synth.metadata

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/java-containeranalysis.git",
7-
"sha": "345cd80877bce3c41d30809461d176d25310b5cf"
7+
"sha": "ed0df7d8cf7850854844826362d401e87d3870db"
88
}
99
},
1010
{
@@ -19,7 +19,7 @@
1919
"git": {
2020
"name": "synthtool",
2121
"remote": "https://github.com/googleapis/synthtool.git",
22-
"sha": "d45942be8066ad57bd0509f4a16e1fac78ecc50f"
22+
"sha": "cb2755306975de4c54ea549c9deb25703b3731bb"
2323
}
2424
}
2525
],

0 commit comments

Comments
 (0)