diff --git a/brut.apktool/apktool-cli/build.gradle.kts b/brut.apktool/apktool-cli/build.gradle.kts index fbd256f341..50b8d8fb4a 100644 --- a/brut.apktool/apktool-cli/build.gradle.kts +++ b/brut.apktool/apktool-cli/build.gradle.kts @@ -50,6 +50,10 @@ val shadowJar = tasks.create("shadowJar", Jar::class) { tasks.register("proguard") { dependsOn("shadowJar") + onlyIf { + JavaVersion.current().isJava11Compatible + } + val proguardRules = file("proguard-rules.pro") val originalJar = shadowJar.outputs.files.singleFile