Skip to content

Commit

Permalink
Test for Forge reobfuscation task.
Browse files Browse the repository at this point in the history
  • Loading branch information
Crystal-Spider committed May 26, 2024
1 parent 6099234 commit 7e6b842
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ dependencies {
compileOnly group: "org.spongepowered", name: "mixin", version: "0.8.5"
compileOnly "fuzs.forgeconfigapiport:forgeconfigapiport-common-neoforgeapi:${fcap_version}"
}

// Disable publishing tasks where common is not published
tasks.named('publishModrinth').get().setEnabled(false)
tasks.named('publishCurseforge').get().setEnabled(false)
tasks.named('publishGitHub').get().setEnabled(false)
3 changes: 2 additions & 1 deletion forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ processResources {
from project(":common").sourceSets.main.resources
}

jar.finalizedBy("configureReobfTaskForReobfJar")
jar.finalizedBy("reobfJar")

// Task seems bugged, breaks build because of mod dependencies in the Common project, with no apparent workaround.
Expand All @@ -96,4 +97,4 @@ sourceSets.each {
def dir = layout.buildDirectory.dir("sourcesSets/$it.name")
it.output.resourcesDir = dir
it.java.destinationDirectory = dir
}
}

0 comments on commit 7e6b842

Please sign in to comment.