diff --git a/build.gradle.kts b/build.gradle.kts index 40f3798..43d056d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -10,7 +10,7 @@ plugins { allprojects { group = "com.github.Androidacy.LSParanoid" - version = "0.6.13" + version = "0.6.14" plugins.withType(JavaPlugin::class.java) { extensions.configure(JavaPluginExtension::class.java) { diff --git a/gradle-plugin/src/main/java/org/lsposed/lsparanoid/plugin/LSParanoidPlugin.kt b/gradle-plugin/src/main/java/org/lsposed/lsparanoid/plugin/LSParanoidPlugin.kt index 4b5c741..d5c9f87 100644 --- a/gradle-plugin/src/main/java/org/lsposed/lsparanoid/plugin/LSParanoidPlugin.kt +++ b/gradle-plugin/src/main/java/org/lsposed/lsparanoid/plugin/LSParanoidPlugin.kt @@ -44,11 +44,13 @@ class LSParanoidPlugin : Plugin { ) { // up to date if java or kotlin compile was not ran it.outputs.upToDateWhen { - project.tasks.withType(JavaCompile::class.java).any { task -> - task.state.upToDate - } && project.tasks.withType(KotlinCompile::class.java).any { task -> - task.state.upToDate + for (task in project.tasks.withType(JavaCompile::class.java)) { + if (task.didWork) return@upToDateWhen false } + for (task in project.tasks.withType(KotlinCompile::class.java)) { + if (task.didWork) return@upToDateWhen false + } + true } it.bootClasspath.set(components.sdkComponents.bootClasspath) it.classpath = variant.compileClasspath