define spotbugs outputs for all tasks

this fixes the cacheability issue with version 5+
This commit is contained in:
Carsten Otto
2022-01-21 10:07:50 +01:00
parent 8d60592c73
commit d22de613aa
2 changed files with 9 additions and 8 deletions

View File

@@ -6,12 +6,12 @@ plugins {
id 'lnd-manageJ.tests'
id 'lnd-manageJ.mutationtests'
id 'lnd-manageJ.integration-tests'
id 'lnd-manageJ.spotbugs'
id 'lnd-manageJ.pmd'
id 'lnd-manageJ.jacoco'
id 'org.springframework.boot'
id 'io.spring.dependency-management'
id 'java-test-fixtures'
id 'lnd-manageJ.spotbugs'
}
java {

View File

@@ -2,14 +2,15 @@ plugins {
id 'com.github.spotbugs'
}
spotbugsMain.reports.configure {
xml.enabled = false
html.enabled = true
}
spotbugsTest.reports.configure {
xml.enabled = false
html.enabled = true
tasks.withType(com.github.spotbugs.snom.SpotBugsTask).forEach { spotbugsTask ->
spotbugsTask.configure {
reports.configure {
xml.enabled = false
html.enabled = true
}
}
}
spotbugs {
excludeFilter = file("${rootDir}/config/spotbugs-exclude.xml")
onlyAnalyze = ['de.cotto.*']