Build tweek

This commit is contained in:
mcrcortex
2025-04-14 17:45:50 +10:00
parent 523cb55889
commit 7e3a73671b

View File

@@ -123,6 +123,7 @@ java {
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion) toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
} }
archivesBaseName = project.archives_base_name archivesBaseName = project.archives_base_name
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task // Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present. // if it is present.
// If you remove this line, sources will not be generated. // 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("<UnknownCommit>")) {
archiveClassifier.set(hash);
}
}
project.ext.lwjglVersion = "3.3.3" project.ext.lwjglVersion = "3.3.3"
project.ext.lwjglNatives = "natives-windows" project.ext.lwjglNatives = "natives-windows"