I use the Gradle JaCoCo plugin, according to the exclusion list some folders must be excluded from the test coverage check. But when I run gradle sonar
all these folders are being processed by Sonarcloud.
How can I force SonarCloud to ignore these folders?
jacocoTestReport {
dependsOn test
reports {
xml.required = true
html.required = true
}
afterEvaluate {
classDirectories.setFrom(files(classDirectories.files.collect {
fileTree(dir: it, exclude: [
'by/litvin/localsandbox/model/*',
'by/litvin/localsandbox/mapper/*',
'by/litvin/localsandbox/data/*',
'by/litvin/localsandbox/data/*',
'by/litvin/localsandbox/messaging/event/*',
'by/litvin/localsandbox/messaging/serializer/*',
'by/litvin/localsandbox/config/*',
'by/litvin/localsandbox/LocalSandboxApplication.*'
])
}))
}
}