diff options
-rw-r--r-- | build-src/src/main/kotlin/ledger-globals.gradle.kts | 6 | ||||
-rw-r--r-- | build-src/src/main/kotlin/ledger-marker.gradle.kts | 0 | ||||
-rw-r--r-- | build.gradle.kts | 6 |
3 files changed, 11 insertions, 1 deletions
diff --git a/build-src/src/main/kotlin/ledger-globals.gradle.kts b/build-src/src/main/kotlin/ledger-globals.gradle.kts new file mode 100644 index 0000000..5eb8004 --- /dev/null +++ b/build-src/src/main/kotlin/ledger-globals.gradle.kts @@ -0,0 +1,6 @@ +import org.gradle.api.tasks.bundling.AbstractArchiveTask + +tasks.withType<AbstractArchiveTask> { + this.isPreserveFileTimestamps = false + this.isReproducibleFileOrder = true +}
\ No newline at end of file diff --git a/build-src/src/main/kotlin/ledger-marker.gradle.kts b/build-src/src/main/kotlin/ledger-marker.gradle.kts deleted file mode 100644 index e69de29..0000000 --- a/build-src/src/main/kotlin/ledger-marker.gradle.kts +++ /dev/null diff --git a/build.gradle.kts b/build.gradle.kts index e2ada17..2fbbd99 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -21,9 +21,12 @@ plugins { id("com.github.johnrengelman.shadow") version "8.1.1" id("com.github.gmazzo.buildconfig") version "5.5.0" kotlin("jvm") version "2.0.20" - id("ledger-marker") + id("ledger-globals") id("ledger-repo") } +allprojects { + apply(plugin = "ledger-globals") +} fun cmd(vararg args: String): String { val baos = ByteArrayOutputStream() @@ -226,6 +229,7 @@ val remapJar by tasks.named<net.fabricmc.loom.task.RemapJarTask>("remapJar") { tasks.jar { archiveClassifier.set("without-deps") + dependsOn(tasks.processResources) // Why is this needed? destinationDirectory.set(layout.buildDirectory.dir("badjars")) } |