From 6f40777f993c609580c57739db10685df0e193af Mon Sep 17 00:00:00 2001 From: Username404 Date: Tue, 1 Jun 2021 17:03:07 +0200 Subject: [PATCH] Improve the name of the produced shrinked .jar files --- build.gradle.kts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 7ac8594..4826926 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -69,7 +69,7 @@ subprojects { withType(Jar::class) { from("$rootDir/LICENSE.txt") indraGit.applyVcsInformationToManifest(manifest) - archiveBaseName.set("${rootProject.name}-${rootProject.version}") + archiveBaseName.set(rootProject.name) } withType(ShadowJar::class) { this.configurations = listOf(shadowC) @@ -142,6 +142,7 @@ subprojects { dependsOn(shrinkJar) val shrinkedJar = shrinkJar.get().outJarFileCollection.singleFile archiveBaseName.set(shadowJar.archiveBaseName) + archiveVersion.set("[${rootProject.version}+$mcBase]") archiveClassifier.set(this@subprojects.name) input.set(shrinkedJar) if (!archiveFileName.get().contains("common")) destinationDirectory.set(file("$rootDir/remappedJars"))