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 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 from shadowJarInput
configurations = [ project.configurations.shadow ] configurations = [ project.configurations.shadow ]
archiveClassifier = 'shadow' archiveClassifier = 'shadow'
@ -224,9 +224,9 @@ allprojects {
afterEvaluate { afterEvaluate {
remapJar { remapJar {
dependsOn shadowJar dependsOn completeJar
input = shadowJar.archiveFile input = completeJar.archiveFile
archiveFileName = "${archivesBaseName}-${project.version}.jar" archiveFileName = "${archivesBaseName}-${project.version}.jar"
} }
@ -264,8 +264,8 @@ allprojects {
reproducibleFileOrder = true reproducibleFileOrder = true
} }
task remapMavenJar(type: net.fabricmc.loom.task.RemapJarTask, dependsOn: shadowJar) { task remapMavenJar(type: net.fabricmc.loom.task.RemapJarTask, dependsOn: completeJar) {
input = shadowJar.archiveFile input = completeJar.archiveFile
archiveFileName = "${archivesBaseName}-${project.version}-maven.jar" archiveFileName = "${archivesBaseName}-${project.version}-maven.jar"
addNestedDependencies = false addNestedDependencies = false
} }