From 7e3a73671bf9741ce9474f92d02c3249df63b087 Mon Sep 17 00:00:00 2001 From: mcrcortex <18544518+MCRcortex@users.noreply.github.com> Date: Mon, 14 Apr 2025 17:45:50 +1000 Subject: [PATCH] Build tweek --- build.gradle | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build.gradle b/build.gradle index 6204805e..ee0fd54f 100644 --- a/build.gradle +++ b/build.gradle @@ -123,6 +123,7 @@ java { toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion) } archivesBaseName = project.archives_base_name + // Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task // if it is present. // If you remove this line, sources will not be generated. @@ -175,6 +176,14 @@ if (!processIncludeJars.outputDirectory.asFileTree.filter { } } +remapJar { + delete getDestinationDirectory().get() + + def hash = gitCommitHash(); + if (!hash.equals("")) { + archiveClassifier.set(hash); + } +} project.ext.lwjglVersion = "3.3.3" project.ext.lwjglNatives = "natives-windows"