summaryrefslogtreecommitdiff
path: root/gradlew.bat
diff options
context:
space:
mode:
authorGravatar Juuz2025-08-21 23:53:50 +0300
committerGravatar GitHub2025-08-21 21:53:50 +0100
commita61fe39f4e86ce5ab2c0615612deae1c51aff927 (patch)
tree8035d1659782571fd24980d89779d8287413e29e /gradlew.bat
parentGet rid of Guava (#555) (diff)
downloadenigma-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.bat26
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
44if %ERRORLEVEL% equ 0 goto execute 46if %ERRORLEVEL% equ 0 goto execute
45 47
46echo. 48echo. 1>&2
47echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 49echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
48echo. 50echo. 1>&2
49echo Please set the JAVA_HOME variable in your environment to match the 51echo Please set the JAVA_HOME variable in your environment to match the 1>&2
50echo location of your Java installation. 52echo location of your Java installation. 1>&2
51 53
52goto fail 54goto fail
53 55
@@ -57,22 +59,22 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
57 59
58if exist "%JAVA_EXE%" goto execute 60if exist "%JAVA_EXE%" goto execute
59 61
60echo. 62echo. 1>&2
61echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 63echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
62echo. 64echo. 1>&2
63echo Please set the JAVA_HOME variable in your environment to match the 65echo Please set the JAVA_HOME variable in your environment to match the 1>&2
64echo location of your Java installation. 66echo location of your Java installation. 1>&2
65 67
66goto fail 68goto fail
67 69
68:execute 70:execute
69@rem Setup the command line 71@rem Setup the command line
70 72
71set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73set 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