diff options
| author | 2025-08-21 23:53:50 +0300 | |
|---|---|---|
| committer | 2025-08-21 21:53:50 +0100 | |
| commit | a61fe39f4e86ce5ab2c0615612deae1c51aff927 (patch) | |
| tree | 8035d1659782571fd24980d89779d8287413e29e /gradlew | |
| parent | Get rid of Guava (#555) (diff) | |
| download | enigma-a61fe39f4e86ce5ab2c0615612deae1c51aff927.tar.gz enigma-a61fe39f4e86ce5ab2c0615612deae1c51aff927.tar.xz enigma-a61fe39f4e86ce5ab2c0615612deae1c51aff927.zip | |
Update Gradle and fix buildscripts (#557)
* Fix Gradle configuration cache compat with generateResources task
The task now also declares its inputs properly, making it support
up-to-date checks.
* Update Gradle and Shadow
Shadow 9 is incompatible with including the flatlaf natives,
so I updated to the last 8.x version which also works with Gradle 9.
The Shadow plugin automatically publishes the shadow jar, so I removed
the overlapping publications which overrode each other.
* Fix more Gradle 10 deprecations
* Enable configuration cache by default
* Fix missing task dependency of :enigma-cli:test
Diffstat (limited to 'gradlew')
| -rwxr-xr-x | gradlew | 14 |
1 files changed, 8 insertions, 6 deletions
| @@ -1,7 +1,7 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | # | 3 | # |
| 4 | # Copyright © 2015-2021 the original authors. | 4 | # Copyright © 2015 the original authors. |
| 5 | # | 5 | # |
| 6 | # Licensed under the Apache License, Version 2.0 (the "License"); | 6 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | # you may not use this file except in compliance with the License. | 7 | # you may not use this file except in compliance with the License. |
| @@ -15,6 +15,8 @@ | |||
| 15 | # See the License for the specific language governing permissions and | 15 | # See the License for the specific language governing permissions and |
| 16 | # limitations under the License. | 16 | # limitations under the License. |
| 17 | # | 17 | # |
| 18 | # SPDX-License-Identifier: Apache-2.0 | ||
| 19 | # | ||
| 18 | 20 | ||
| 19 | ############################################################################## | 21 | ############################################################################## |
| 20 | # | 22 | # |
| @@ -55,7 +57,7 @@ | |||
| 55 | # Darwin, MinGW, and NonStop. | 57 | # Darwin, MinGW, and NonStop. |
| 56 | # | 58 | # |
| 57 | # (3) This script is generated from the Groovy template | 59 | # (3) This script is generated from the Groovy template |
| 58 | # https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt | 60 | # https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt |
| 59 | # within the Gradle project. | 61 | # within the Gradle project. |
| 60 | # | 62 | # |
| 61 | # You can find Gradle at https://github.com/gradle/gradle/. | 63 | # You can find Gradle at https://github.com/gradle/gradle/. |
| @@ -84,7 +86,7 @@ done | |||
| 84 | # shellcheck disable=SC2034 | 86 | # shellcheck disable=SC2034 |
| 85 | APP_BASE_NAME=${0##*/} | 87 | APP_BASE_NAME=${0##*/} |
| 86 | # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) | 88 | # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) |
| 87 | APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit | 89 | APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit |
| 88 | 90 | ||
| 89 | # Use the maximum available, or set MAX_FD != -1 to use that value. | 91 | # Use the maximum available, or set MAX_FD != -1 to use that value. |
| 90 | MAX_FD=maximum | 92 | MAX_FD=maximum |
| @@ -112,7 +114,7 @@ case "$( uname )" in #( | |||
| 112 | NONSTOP* ) nonstop=true ;; | 114 | NONSTOP* ) nonstop=true ;; |
| 113 | esac | 115 | esac |
| 114 | 116 | ||
| 115 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar | 117 | CLASSPATH="\\\"\\\"" |
| 116 | 118 | ||
| 117 | 119 | ||
| 118 | # Determine the Java command to use to start the JVM. | 120 | # Determine the Java command to use to start the JVM. |
| @@ -203,7 +205,7 @@ fi | |||
| 203 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' | 205 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' |
| 204 | 206 | ||
| 205 | # Collect all arguments for the java command: | 207 | # Collect all arguments for the java command: |
| 206 | # * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, | 208 | # * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, |
| 207 | # and any embedded shellness will be escaped. | 209 | # and any embedded shellness will be escaped. |
| 208 | # * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be | 210 | # * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be |
| 209 | # treated as '${Hostname}' itself on the command line. | 211 | # treated as '${Hostname}' itself on the command line. |
| @@ -211,7 +213,7 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' | |||
| 211 | set -- \ | 213 | set -- \ |
| 212 | "-Dorg.gradle.appname=$APP_BASE_NAME" \ | 214 | "-Dorg.gradle.appname=$APP_BASE_NAME" \ |
| 213 | -classpath "$CLASSPATH" \ | 215 | -classpath "$CLASSPATH" \ |
| 214 | org.gradle.wrapper.GradleWrapperMain \ | 216 | -jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \ |
| 215 | "$@" | 217 | "$@" |
| 216 | 218 | ||
| 217 | # Stop when "xargs" is not available. | 219 | # Stop when "xargs" is not available. |