37 lines
844 B
Groovy
37 lines
844 B
Groovy
|
|
||
|
subprojects {
|
||
|
|
||
|
sonarqube {
|
||
|
properties {
|
||
|
property "sonar.projectName", "${project.group} ${project.name}"
|
||
|
property "sonar.sourceEncoding", "UTF-8"
|
||
|
property "sonar.tests", "src/test/java"
|
||
|
property "sonar.scm.provider", "git"
|
||
|
property "sonar.junit.reportsPath", "build/test-results/test/"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
tasks.withType(Pmd) {
|
||
|
ignoreFailures = true
|
||
|
reports {
|
||
|
xml.enabled = true
|
||
|
html.enabled = true
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
spotbugs {
|
||
|
effort = "max"
|
||
|
reportLevel = "low"
|
||
|
//includeFilter = file("findbugs-exclude.xml")
|
||
|
}
|
||
|
|
||
|
tasks.withType(com.github.spotbugs.SpotBugsTask) {
|
||
|
ignoreFailures = true
|
||
|
reports {
|
||
|
xml.enabled = false
|
||
|
html.enabled = true
|
||
|
}
|
||
|
}
|
||
|
}
|