Skip to content

Commit

Permalink
Fix lint build.
Browse files Browse the repository at this point in the history
  • Loading branch information
Laimiux committed Jan 4, 2024
1 parent 50ce472 commit 7437149
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions formula-lint/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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")
Expand All @@ -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(AndroidLintAnalysisTask::class.java))
dependsOn(tasks.withType(LintModelWriterTask::class.java))
}
}

0 comments on commit 7437149

Please sign in to comment.