diff --git a/gradle-plugin/plugin/src/main/kotlin/com/emergetools/android/gradle/EmergePlugin.kt b/gradle-plugin/plugin/src/main/kotlin/com/emergetools/android/gradle/EmergePlugin.kt index 066a2c7c..a630909f 100644 --- a/gradle-plugin/plugin/src/main/kotlin/com/emergetools/android/gradle/EmergePlugin.kt +++ b/gradle-plugin/plugin/src/main/kotlin/com/emergetools/android/gradle/EmergePlugin.kt @@ -114,7 +114,7 @@ class EmergePlugin : Plugin { registerSnapshotTasks(appProject, emergeExtension, variant, androidTest) } - if (appProject.hasProperty(EMERGE_DEBUG_TASK_PROPERTY)) { + if (appProject.providers.gradleProperty(EMERGE_DEBUG_TASK_PROPERTY).orNull != null) { registerDebugTasks(appProject, emergeExtension) } }