From 6d1017eadf6052e582ffb668497519fff242b03e Mon Sep 17 00:00:00 2001 From: Connor Tumbleson Date: Mon, 16 Sep 2024 20:09:12 -0400 Subject: [PATCH] fix: allow maven to publish without implicit task ordering (#3693) --- brut.apktool/apktool-cli/build.gradle.kts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/brut.apktool/apktool-cli/build.gradle.kts b/brut.apktool/apktool-cli/build.gradle.kts index f2b4ce9e..707435e2 100644 --- a/brut.apktool/apktool-cli/build.gradle.kts +++ b/brut.apktool/apktool-cli/build.gradle.kts @@ -25,6 +25,8 @@ tasks.withType().configureEach { tasks.register("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("proguard") { originalJar.toString() ) } + +tasks.withType { + dependsOn(tasks.named("shadowJar")) +} + +tasks.withType { + dependsOn(tasks.named("shadowJar")) +} + +tasks.withType { + dependsOn(tasks.named("shadowJar")) +}