From 9ef92d5bec06bab0fc5b0728d2e0724cb7956e3e Mon Sep 17 00:00:00 2001 From: Akash Yadav Date: Wed, 15 Mar 2023 22:37:11 +0530 Subject: [PATCH] fix: 'tooling-api-impl:copyJarToAssets' is not declared as dependency of :app tasks --- app/build.gradle.kts | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 58f97a76dd..8f9e4769ef 100755 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -73,7 +73,6 @@ android { kapt { arguments { arg("eventBusIndex", "com.itsaky.androidide.events.AppEventsIndex") } } dependencies { - debugImplementation(libs.common.leakcanary) // Annotation processors @@ -188,8 +187,15 @@ fun getEnvOrProp(key: String): String? { } afterEvaluate { - tasks.getByName("mergeDebugAssets").dependsOn(":subprojects:tooling-api-impl:copyJarToAssets") - tasks.getByName("mergeReleaseAssets").dependsOn(":subprojects:tooling-api-impl:copyJarToAssets") - tasks.getByName("lintAnalyzeDebug").dependsOn(":subprojects:tooling-api-impl:copyJarToAssets") - tasks.getByName("lintAnalyzeRelease").dependsOn(":subprojects:tooling-api-impl:copyJarToAssets") -} \ No newline at end of file + val dependents = + listOf( + "mergeDebugAssets", + "mergeReleaseAssets", + "lintAnalyzeDebug", + "lintAnalyzeRelease", + "lintVitalAnalyzeRelease" + ) + for (dependent in dependents) { + tasks.getByName(dependent).dependsOn(":subprojects:tooling-api-impl:copyJarToAssets") + } +}