Skip to content

Commit 068f10a

Browse files
committed
all: fix jacoco
1 parent d7175c8 commit 068f10a

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Diff for: hms-plugin/build.gradle

+6
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ android {
3535
}
3636
}
3737
}
38+
unitTests.all {
39+
jacoco {
40+
includeNoLocationClasses = true
41+
excludes = ['jdk.internal.*']
42+
}
43+
}
3844
}
3945
}
4046

Diff for: hms-plugin/jacoco.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ task testDebugCoverageUnitTest(dependsOn: ['instrument', 'testDebugUnitTest']) {
4343
structure(name: 'HmsCoverage') {
4444
classfiles {
4545
fileset(
46-
dir: "$buildDir/intermediates/javac/debug/classes",
46+
dir: "$buildDir/intermediates/javac/debug/compileDebugJavaWithJavac/classes",
4747
excludes: '**/R.class,**/R$*.class,**/BuildConfig.*'
4848
)
4949
}
@@ -83,7 +83,7 @@ task instrument(dependsOn:'compileDebugUnitTestSources') {
8383
classpath: configurations.jacocoAnt.asPath)
8484

8585
ant.instrument(destdir: offline_instrumented_outputDir) {
86-
fileset(dir: "$buildDir.path/intermediates/javac/debug/classes")
86+
fileset(dir: "$buildDir.path/intermediates/javac/debug/compileDebugJavaWithJavac/classes")
8787
}
8888
}
89-
}
89+
}

0 commit comments

Comments
 (0)