Skip to content

Instantly share code, notes, and snippets.

@ayakimchuk322
Last active April 16, 2020 00:09
Show Gist options
  • Save ayakimchuk322/d0b8913065abdf8d94e65ea0840c5b7c to your computer and use it in GitHub Desktop.
Save ayakimchuk322/d0b8913065abdf8d94e65ea0840c5b7c to your computer and use it in GitHub Desktop.
Add this to the root build.gradle
// JACOCO AGGREGATE TASK
task jacocoRootReport(type: JacocoReport) {
subprojects.each {
sourceSets it.sourceSets.main
}
classDirectories.setFrom(files(classDirectories.files.collect {
fileTree(dir: it, exclude: [
'/com/package/subpackage/**'
])
}))
executionData fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec")
reports {
csv.enabled false
xml.enabled true
html.enabled true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment