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--- build.gradle | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'build.gradle') diff --git a/build.gradle b/build.gradle index 9f311844..caf78f1c 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,6 @@ plugins { id 'maven-publish' - id 'com.github.johnrengelman.shadow' version '8.1.1' apply false + id 'com.gradleup.shadow' version '8.3.9' apply false id 'com.diffplug.spotless' version '7.2.1' } @@ -13,7 +13,7 @@ subprojects { repositories { mavenLocal() mavenCentral() - maven { url 'https://maven.fabricmc.net/' } + maven { url = 'https://maven.fabricmc.net/' } } dependencies { @@ -60,9 +60,9 @@ subprojects { publishing { publications { "$project.name"(MavenPublication) { - groupId project.group - artifactId project.name - version project.version + groupId = project.group + artifactId = project.name + version = project.version from components.java } } @@ -89,10 +89,10 @@ allprojects { } // A task to ensure that the version being released has not already been released. -task checkVersion { +tasks.register('checkVersion') { doFirst { def xml = new URL("https://maven.fabricmc.net/cuchaz/enigma/maven-metadata.xml").text - def metadata = new XmlSlurper().parseText(xml) + def metadata = new groovy.xml.XmlSlurper().parseText(xml) def versions = metadata.versioning.versions.version*.text(); if (versions.contains(version)) { throw new RuntimeException("${version} has already been released!") -- cgit v1.2.3