fix: allow maven to publish without implicit task ordering (#3693)

This commit is contained in:
Connor Tumbleson 2024-09-16 20:09:12 -04:00 committed by GitHub
parent 1d6e328de0
commit 6d1017eadf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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")
})
}
@ -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"))
}