Skip to content

Commit

Permalink
Upgrade release tool gradle to run on jdk-21
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Leonard <anleonar@redhat.com>
  • Loading branch information
andrew-m-leonard committed Feb 12, 2024
1 parent d9ecd65 commit a0aa3ef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion adopt-github-release/gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx1g" "-Xms1g"'
DEFAULT_JVM_OPTS='"-Xmx512m" "-Xms512m"'

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
Expand Down Expand Up @@ -177,6 +177,9 @@ save () {
}
APP_ARGS=$(save "$@")

# Disable gradle daemon, so that no background long running task is left running, and we can control JVM size from the client java invocation
GRADLE_OPTS="-Dorg.gradle.daemon=false ${GRADLE_OPTS}"

# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"

Expand Down

0 comments on commit a0aa3ef

Please sign in to comment.