Skip to content

Commit

Permalink
Fix all obf jar not being included in maven publication
Browse files Browse the repository at this point in the history
  • Loading branch information
makamys committed Oct 29, 2023
1 parent 8bc2051 commit 181924a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions module-all/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ org.spongepowered.tools.obfuscation.MixinObfuscationProcessorTargets

import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar

task shadowJarObf(type: ShadowJar) {
shadowJar {
classifier = ''
}

Expand All @@ -107,7 +107,7 @@ task devJar(type: ShadowJar) {
}

tasks.withType(ShadowJar) {
if(name == "shadowJarObf" || name == "devJar") {
if(name == "shadowJar" || name == "devJar") {
dependsOn tasks.createMergedMcmodInfo
dependsOn tasks.createEmbeddedCorePluginsFile
dependsOn tasks.createMergedAnnotationProcessorConfig
Expand Down Expand Up @@ -165,11 +165,9 @@ tasks.withType(ShadowJar) {

jar {
enabled = false
dependsOn shadowJarObf, devJar
dependsOn shadowJar, devJar
}

shadowJar.enabled = false

task sourcesJar(type: ShadowJar) {
dependsOn devJar

Expand Down

0 comments on commit 181924a

Please sign in to comment.