diff --git a/hms-plugin/jacoco.gradle b/hms-plugin/jacoco.gradle index 3a0c0d7..63d3146 100644 --- a/hms-plugin/jacoco.gradle +++ b/hms-plugin/jacoco.gradle @@ -43,7 +43,7 @@ task testDebugCoverageUnitTest(dependsOn: ['instrument', 'testDebugUnitTest']) { structure(name: 'HmsCoverage') { classfiles { fileset( - dir: "$buildDir/intermediates/javac/debug/classes", + dir: "$buildDir/intermediates/javac/debug/compileDebugJavaWithJavac/classes", excludes: '**/R.class,**/R$*.class,**/BuildConfig.*' ) } @@ -83,7 +83,7 @@ task instrument(dependsOn:'compileDebugUnitTestSources') { classpath: configurations.jacocoAnt.asPath) ant.instrument(destdir: offline_instrumented_outputDir) { - fileset(dir: "$buildDir.path/intermediates/javac/debug/classes") + fileset(dir: "$buildDir.path/intermediates/javac/debug/compileDebugJavaWithJavac/classes") } } -} \ No newline at end of file +}