Improve the name of the produced shrinked .jar files
This commit is contained in:
parent
38e0ac2e71
commit
6f40777f99
|
@ -69,7 +69,7 @@ subprojects {
|
||||||
withType(Jar::class) {
|
withType(Jar::class) {
|
||||||
from("$rootDir/LICENSE.txt")
|
from("$rootDir/LICENSE.txt")
|
||||||
indraGit.applyVcsInformationToManifest(manifest)
|
indraGit.applyVcsInformationToManifest(manifest)
|
||||||
archiveBaseName.set("${rootProject.name}-${rootProject.version}")
|
archiveBaseName.set(rootProject.name)
|
||||||
}
|
}
|
||||||
withType(ShadowJar::class) {
|
withType(ShadowJar::class) {
|
||||||
this.configurations = listOf(shadowC)
|
this.configurations = listOf(shadowC)
|
||||||
|
@ -142,6 +142,7 @@ subprojects {
|
||||||
dependsOn(shrinkJar)
|
dependsOn(shrinkJar)
|
||||||
val shrinkedJar = shrinkJar.get().outJarFileCollection.singleFile
|
val shrinkedJar = shrinkJar.get().outJarFileCollection.singleFile
|
||||||
archiveBaseName.set(shadowJar.archiveBaseName)
|
archiveBaseName.set(shadowJar.archiveBaseName)
|
||||||
|
archiveVersion.set("[${rootProject.version}+$mcBase]")
|
||||||
archiveClassifier.set(this@subprojects.name)
|
archiveClassifier.set(this@subprojects.name)
|
||||||
input.set(shrinkedJar)
|
input.set(shrinkedJar)
|
||||||
if (!archiveFileName.get().contains("common")) destinationDirectory.set(file("$rootDir/remappedJars"))
|
if (!archiveFileName.get().contains("common")) destinationDirectory.set(file("$rootDir/remappedJars"))
|
||||||
|
|
Loading…
Reference in New Issue