From a61fe39f4e86ce5ab2c0615612deae1c51aff927 Mon Sep 17 00:00:00 2001 From: Juuz Date: Thu, 21 Aug 2025 23:53:50 +0300 Subject: 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--- enigma-cli/build.gradle | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'enigma-cli') 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 @@ plugins { id 'application' - id 'com.github.johnrengelman.shadow' + id 'com.gradleup.shadow' } dependencies { @@ -13,10 +13,4 @@ application { jar.manifest.attributes 'Main-Class': application.mainClass.get() -publishing { - publications { - shadow(MavenPublication) { publication -> - project.shadow.component publication - } - } -} +test.dependsOn project(':enigma').tasks.named('packageAccessTestObf') -- cgit v1.2.3