Skip to content
This repository was archived by the owner on Jan 2, 2021. It is now read-only.

Commit 4619308

Browse files
committed
Update JaCoCo plugin and task scripts
1 parent 846b54d commit 4619308

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ buildscript {
66
dependencies {
77
classpath 'com.android.tools.build:gradle:3.1.4'
88
classpath 'com.novoda:bintray-release:0.7.0'
9+
classpath 'org.jacoco:org.jacoco.core:0.8.1'
910
}
1011
}
1112

multi-view-adapter/build.gradle

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ apply plugin: 'com.novoda.bintray-release'
2121
apply plugin: 'jacoco'
2222

2323
jacoco {
24-
toolVersion = "0.7.4.201502262128"
24+
toolVersion = "0.8.1"
25+
}
26+
27+
tasks.withType(Test) {
28+
jacoco.includeNoLocationClasses = true
2529
}
2630

2731
task jacocoTestReport(type: JacocoReport,
@@ -65,10 +69,8 @@ android {
6569
}
6670

6771
testOptions {
68-
unitTests.all {
69-
jacoco {
70-
includeNoLocationClasses = true
71-
}
72+
unitTests {
73+
includeAndroidResources = true
7274
}
7375
}
7476
}

0 commit comments

Comments
 (0)