Skip to content

Commit

Permalink
Fix lint build. (#326)
Browse files Browse the repository at this point in the history
* Fix lint build.

* PR feedback.
  • Loading branch information
Laimiux authored Jan 4, 2024
1 parent 50ce472 commit 8a4fcf6
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>())
dependsOn(tasks.withType<LintModelWriterTask>())
}
}

0 comments on commit 8a4fcf6

Please sign in to comment.