Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit 9ef92d5

Browse files
committed
fix: 'tooling-api-impl:copyJarToAssets' is not declared as dependency of :app tasks
1 parent deeba5a commit 9ef92d5

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

app/build.gradle.kts

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ android {
7373
kapt { arguments { arg("eventBusIndex", "com.itsaky.androidide.events.AppEventsIndex") } }
7474

7575
dependencies {
76-
7776
debugImplementation(libs.common.leakcanary)
7877

7978
// Annotation processors
@@ -188,8 +187,15 @@ fun getEnvOrProp(key: String): String? {
188187
}
189188

190189
afterEvaluate {
191-
tasks.getByName("mergeDebugAssets").dependsOn(":subprojects:tooling-api-impl:copyJarToAssets")
192-
tasks.getByName("mergeReleaseAssets").dependsOn(":subprojects:tooling-api-impl:copyJarToAssets")
193-
tasks.getByName("lintAnalyzeDebug").dependsOn(":subprojects:tooling-api-impl:copyJarToAssets")
194-
tasks.getByName("lintAnalyzeRelease").dependsOn(":subprojects:tooling-api-impl:copyJarToAssets")
195-
}
190+
val dependents =
191+
listOf(
192+
"mergeDebugAssets",
193+
"mergeReleaseAssets",
194+
"lintAnalyzeDebug",
195+
"lintAnalyzeRelease",
196+
"lintVitalAnalyzeRelease"
197+
)
198+
for (dependent in dependents) {
199+
tasks.getByName(dependent).dependsOn(":subprojects:tooling-api-impl:copyJarToAssets")
200+
}
201+
}

0 commit comments

Comments
 (0)