Skip to content

Commit

Permalink
fix: allow maven to publish without implicit task ordering (#3693)
Browse files Browse the repository at this point in the history
  • Loading branch information
iBotPeaches authored Sep 17, 2024
1 parent 1d6e328 commit 6d1017e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions brut.apktool/apktool-cli/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ tasks.withType<AbstractArchiveTask>().configureEach {

tasks.register<Delete>("cleanOutputDirectory") {
delete(fileTree("build/libs") {
exclude("apktool-cli-sources.jar")
exclude("apktool-cli-javadoc.jar")
exclude("apktool-cli-all.jar")
})
}
Expand Down Expand Up @@ -74,3 +76,15 @@ tasks.register<JavaExec>("proguard") {
originalJar.toString()
)
}

tasks.withType<org.gradle.api.publish.maven.tasks.PublishToMavenRepository> {
dependsOn(tasks.named("shadowJar"))
}

tasks.withType<org.gradle.plugins.signing.Sign> {
dependsOn(tasks.named("shadowJar"))
}

tasks.withType<org.gradle.api.publish.tasks.GenerateModuleMetadata> {
dependsOn(tasks.named("shadowJar"))
}

0 comments on commit 6d1017e

Please sign in to comment.