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

Commit e609515

Browse files
fix(java): java 17 dependency arguments (#228)
Source-Author: kolea2 <45548808+kolea2@users.noreply.github.com> Source-Date: Mon Oct 25 11:06:10 2021 -0400 Source-Repo: googleapis/synthtool Source-Sha: cb2755306975de4c54ea549c9deb25703b3731bb Source-Link: googleapis/synthtool@cb27553
1 parent 58c9a81 commit e609515

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-iam.git",
7-
"sha": "4a64f7fb47f860e06bd4b23045f22a37b8d4d09b"
7+
"sha": "58c9a81c55274b64c5e6877c9f909466a672c385"
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)