diff options
| author | 2025-08-21 23:53:50 +0300 | |
|---|---|---|
| committer | 2025-08-21 21:53:50 +0100 | |
| commit | a61fe39f4e86ce5ab2c0615612deae1c51aff927 (patch) | |
| tree | 8035d1659782571fd24980d89779d8287413e29e /gradlew.bat | |
| 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.bat')
| -rw-r--r-- | gradlew.bat | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/gradlew.bat b/gradlew.bat index 93e3f59f..db3a6ac2 100644 --- a/gradlew.bat +++ b/gradlew.bat | |||
| @@ -13,6 +13,8 @@ | |||
| 13 | @rem See the License for the specific language governing permissions and | 13 | @rem See the License for the specific language governing permissions and |
| 14 | @rem limitations under the License. | 14 | @rem limitations under the License. |
| 15 | @rem | 15 | @rem |
| 16 | @rem SPDX-License-Identifier: Apache-2.0 | ||
| 17 | @rem | ||
| 16 | 18 | ||
| 17 | @if "%DEBUG%"=="" @echo off | 19 | @if "%DEBUG%"=="" @echo off |
| 18 | @rem ########################################################################## | 20 | @rem ########################################################################## |
| @@ -43,11 +45,11 @@ set JAVA_EXE=java.exe | |||
| 43 | %JAVA_EXE% -version >NUL 2>&1 | 45 | %JAVA_EXE% -version >NUL 2>&1 |
| 44 | if %ERRORLEVEL% equ 0 goto execute | 46 | if %ERRORLEVEL% equ 0 goto execute |
| 45 | 47 | ||
| 46 | echo. | 48 | echo. 1>&2 |
| 47 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. | 49 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 |
| 48 | echo. | 50 | echo. 1>&2 |
| 49 | echo Please set the JAVA_HOME variable in your environment to match the | 51 | echo Please set the JAVA_HOME variable in your environment to match the 1>&2 |
| 50 | echo location of your Java installation. | 52 | echo location of your Java installation. 1>&2 |
| 51 | 53 | ||
| 52 | goto fail | 54 | goto fail |
| 53 | 55 | ||
| @@ -57,22 +59,22 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe | |||
| 57 | 59 | ||
| 58 | if exist "%JAVA_EXE%" goto execute | 60 | if exist "%JAVA_EXE%" goto execute |
| 59 | 61 | ||
| 60 | echo. | 62 | echo. 1>&2 |
| 61 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% | 63 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 |
| 62 | echo. | 64 | echo. 1>&2 |
| 63 | echo Please set the JAVA_HOME variable in your environment to match the | 65 | echo Please set the JAVA_HOME variable in your environment to match the 1>&2 |
| 64 | echo location of your Java installation. | 66 | echo location of your Java installation. 1>&2 |
| 65 | 67 | ||
| 66 | goto fail | 68 | goto fail |
| 67 | 69 | ||
| 68 | :execute | 70 | :execute |
| 69 | @rem Setup the command line | 71 | @rem Setup the command line |
| 70 | 72 | ||
| 71 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar | 73 | set CLASSPATH= |
| 72 | 74 | ||
| 73 | 75 | ||
| 74 | @rem Execute Gradle | 76 | @rem Execute Gradle |
| 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* | 77 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* |
| 76 | 78 | ||
| 77 | :end | 79 | :end |
| 78 | @rem End local scope for the variables with windows NT shell | 80 | @rem End local scope for the variables with windows NT shell |