Improve the name of the produced shrinked .jar files

This commit is contained in:
Username404 2021-06-01 17:03:07 +02:00
parent 38e0ac2e71
commit 6f40777f99
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 2 additions and 1 deletions

View File

@ -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"))