Skip to content

Commit

Permalink
Make the sourcesJar task depend on the fabric config update
Browse files Browse the repository at this point in the history
Required for CI/CD, not really anywhere else
  • Loading branch information
yogwoggf committed Apr 23, 2024
1 parent 2e8b160 commit 34feb73
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ tasks.register('updateFabricConfigAction', Copy) {
rename { "fabric.mod.json" }
}


tasks.named('processResources') {
dependsOn(tasks.updateFabricConfigAction)
}
Expand All @@ -73,6 +74,10 @@ java {
targetCompatibility = JavaVersion.VERSION_17
}

tasks.named("sourcesJar") {
dependsOn(tasks.updateFabricConfigAction)
}

jar {
from("LICENSE") {
rename { "${it}_${project.base.archivesName.get()}" }
Expand Down

0 comments on commit 34feb73

Please sign in to comment.