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

ci: configure the protected branch #511

Merged
merged 4 commits into from
Nov 10, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: dependencies.sh to work with Java 17 (#516)
  • Loading branch information
suztomo authored Nov 10, 2021
commit 8422c1d7e9ef479f348e63c530789050b5235426
11 changes: 4 additions & 7 deletions .kokoro/dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,13 @@ function determineMavenOpts() {
| sed -E 's/^.*"(.*?)".*$/\1/g' \
| sed -E 's/^(1\.[0-9]\.0).*$/\1/g'
)

case $javaVersion in
"17")
if [[ $javaVersion == 17* ]]
then
# MaxPermSize is no longer supported as of jdk 17
echo -n "-Xmx1024m"
;;
*)
else
echo -n "-Xmx1024m -XX:MaxPermSize=128m"
;;
esac
fi
}

export MAVEN_OPTS=$(determineMavenOpts)
Expand Down