Update v2.gradle

This commit is contained in:
Johannes Frohnmeyer 2022-09-26 16:07:22 +00:00
parent fe884d2a6d
commit d25884f87e
1 changed files with 5 additions and 5 deletions

View File

@ -215,7 +215,7 @@ allprojects {
shadowJarInput = injectCompiledConfig
}
task shadowJar(type: com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar, dependsOn: shadowJarInput, overwrite: true) {
task completeJar(type: com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar, dependsOn: shadowJarInput, overwrite: true) {
from shadowJarInput
configurations = [ project.configurations.shadow ]
archiveClassifier = 'shadow'
@ -224,9 +224,9 @@ allprojects {
afterEvaluate {
remapJar {
dependsOn shadowJar
dependsOn completeJar
input = shadowJar.archiveFile
input = completeJar.archiveFile
archiveFileName = "${archivesBaseName}-${project.version}.jar"
}
@ -264,8 +264,8 @@ allprojects {
reproducibleFileOrder = true
}
task remapMavenJar(type: net.fabricmc.loom.task.RemapJarTask, dependsOn: shadowJar) {
input = shadowJar.archiveFile
task remapMavenJar(type: net.fabricmc.loom.task.RemapJarTask, dependsOn: completeJar) {
input = completeJar.archiveFile
archiveFileName = "${archivesBaseName}-${project.version}-maven.jar"
addNestedDependencies = false
}