diff options
| author | 2025-08-21 23:53:50 +0300 | |
|---|---|---|
| committer | 2025-08-21 21:53:50 +0100 | |
| commit | a61fe39f4e86ce5ab2c0615612deae1c51aff927 (patch) | |
| tree | 8035d1659782571fd24980d89779d8287413e29e /enigma-cli | |
| 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 'enigma-cli')
| -rw-r--r-- | enigma-cli/build.gradle | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/enigma-cli/build.gradle b/enigma-cli/build.gradle index 05e644e1..7bffb216 100644 --- a/enigma-cli/build.gradle +++ b/enigma-cli/build.gradle | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | plugins { | 1 | plugins { |
| 2 | id 'application' | 2 | id 'application' |
| 3 | id 'com.github.johnrengelman.shadow' | 3 | id 'com.gradleup.shadow' |
| 4 | } | 4 | } |
| 5 | 5 | ||
| 6 | dependencies { | 6 | dependencies { |
| @@ -13,10 +13,4 @@ application { | |||
| 13 | 13 | ||
| 14 | jar.manifest.attributes 'Main-Class': application.mainClass.get() | 14 | jar.manifest.attributes 'Main-Class': application.mainClass.get() |
| 15 | 15 | ||
| 16 | publishing { | 16 | test.dependsOn project(':enigma').tasks.named('packageAccessTestObf') |
| 17 | publications { | ||
| 18 | shadow(MavenPublication) { publication -> | ||
| 19 | project.shadow.component publication | ||
| 20 | } | ||
| 21 | } | ||
| 22 | } | ||