Created
January 10, 2020 19:30
-
-
Save nathan815/69390c2d6f340f5adeecd003b302178f to your computer and use it in GitHub Desktop.
Exclude paths in jacoco
This file contains 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
jacocoTestReport { | |
afterEvaluate { | |
classDirectories.setFrom(files(classDirectories.files.collect { | |
fileTree(dir: it, exclude: [ | |
"**/src/main/java/**", | |
"other/path/to/exclude" | |
]) | |
})) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment