diff --git a/formula-lint/build.gradle.kts b/formula-lint/build.gradle.kts index f3c0fb15..14622a42 100644 --- a/formula-lint/build.gradle.kts +++ b/formula-lint/build.gradle.kts @@ -1,3 +1,6 @@ +import com.android.build.gradle.internal.lint.AndroidLintAnalysisTask +import com.android.build.gradle.internal.lint.LintModelWriterTask + plugins { id("java-library") id("kotlin") @@ -19,3 +22,12 @@ dependencies { testImplementation(libs.lint.tests) testImplementation(libs.junit) } + +// Need to register direct task dependencies since jacocoTestReport is +// accessing the files produced by those lint tasks +plugins.withId("jacoco") { + tasks.named("jacocoTestReport") { + dependsOn(tasks.withType()) + dependsOn(tasks.withType()) + } +}