Skip to content

Commit 422efa0

Browse files
authoredOct 25, 2021
fix(java): java 17 dependency arguments (#1046)
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 6e64e45 commit 422efa0

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
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)

‎synth.metadata

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/java-bigtable.git",
7-
"sha": "d2e03d20ae19538c2313b04ab9ada8fbc008f9f8"
7+
"sha": "6e64e455180e0f51d2a189c750556708033b739f"
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)