Skip to content

Commit

Permalink
test(jacoco): force jacoco tools version (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
RyuNen344 committed Mar 8, 2024
1 parent fd5eb28 commit b1e60f2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ androidx-test-ext-truth = "1.5.0"
com-google-truth = "1.4.2"
desugar_jdk_libs = "2.0.4"
jackson-databind = "2.16.1"
jacoco = "0.8.11"
jsonassert = "1.5.1"
junit = "4.13.2"
kotlin = "1.9.23"
Expand Down
10 changes: 9 additions & 1 deletion gradle/testing.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ androidComponents {
}
}

jacoco.toolVersion = "0.8.11"
jacoco.toolVersion = libs.versions.jacoco.get()

tasks.register("jacoco", JacocoReport) {
group = "verification"
Expand All @@ -46,6 +46,14 @@ tasks.register("jacoco", JacocoReport) {
)
}

configurations.configureEach {
it.resolutionStrategy.eachDependency {
if (requested.group == "org.jacoco") {
useVersion libs.versions.jacoco.get()
}
}
}

dependencies {
testImplementation libs.androidx.test.ext.junit
testImplementation libs.androidx.test.ext.truth
Expand Down

0 comments on commit b1e60f2

Please sign in to comment.