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 a0aa3ef commit b642b34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 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='"-Xmx512m" "-Xms512m"'
DEFAULT_JVM_OPTS='"-Xmx256m" "-Xms256m"'

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
Expand Down Expand Up @@ -177,8 +177,8 @@ 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}"
# Specify the required gradle daemon JVM heap settings
GRADLE_OPTS="-Dorg.gradle.jvmargs=-Xmx1g ${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 b642b34

Please sign in to comment.