Skip to content

Commit 064f9cd

Browse files
committed
Enable code coverage when updating Gradle dependencies cache
1 parent 26aa095 commit 064f9cd

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

build.gradle

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,11 @@ subprojects {
8787

8888
afterEvaluate {
8989
if (it.hasProperty('android')) {
90-
jacoco {
91-
toolVersion = libs.versions.jacoco.get()
92-
}
93-
9490
android {
95-
9691
testOptions {
92+
testCoverage {
93+
jacocoVersion = libs.versions.jacoco.get()
94+
}
9795
unitTests {
9896
includeAndroidResources = true
9997
}

taskcluster/scripts/toolchain/android-gradle-dependencies.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pushd $PROJECT_DIR
1919
. taskcluster/scripts/toolchain/android-gradle-dependencies/before.sh
2020

2121
# We build everything to be sure to fetch all dependencies
22-
./gradlew --no-daemon -PgoogleRepo='http://localhost:8081/nexus/content/repositories/google/' -PcentralRepo='http://localhost:8081/nexus/content/repositories/central/' assemble assembleAndroidTest bundle test lint ktlint detekt
22+
./gradlew --no-daemon -Pcoverage -PgoogleRepo='http://localhost:8081/nexus/content/repositories/google/' -PcentralRepo='http://localhost:8081/nexus/content/repositories/central/' assemble assembleAndroidTest bundle test lint ktlint detekt
2323

2424
. taskcluster/scripts/toolchain/android-gradle-dependencies/after.sh
2525

0 commit comments

Comments
 (0)