The following Gradle task, which configures JacocoReportBase:
task jacocoRootReport(type: JacocoReport) {
...
sourceDirectories = files(subprojects.sourc
There is a setter .from
, which works alike this:
task jacocoRootReport(type: JacocoReport) {
...
sourceDirectories.from = subprojects.sourceSets.main.allSource.srcDirs
additionalSourceDirs.from = subprojects.sourceSets.main.allSource.srcDirs
classDirectories.from = subprojects.sourceSets.main.output
executionData.from = subprojects.jacocoTestReport.executionData
...
}