Last active
April 16, 2020 00:09
-
-
Save ayakimchuk322/d0b8913065abdf8d94e65ea0840c5b7c to your computer and use it in GitHub Desktop.
Add this to the root build.gradle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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