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) {
|
||||
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"))
|
||||
|
|
Loading…
Reference in New Issue