How to make “sourceDirectories” public in Jacoco report generation?
问题 I was following this post to setup Jacoco code coverage for my project. But I am facing a error while writing the task to generate the report. Gradle Task task jacocoTestReport(type: JacocoReport, dependsOn: ['testDebugUnitTest', 'createDebugCoverageReport']) { reports { xml.enabled = true html.enabled = true } def fileFilter = ['**/R.class', '**/R$*.class', '**/BuildConfig.*', '**/Manifest*.*', '**/*Test*.*', 'android/**/*.*'] def debugTree = fileTree(dir: "$project.buildDir/intermediates