Skip to content

Commit

Permalink
build.gradle: simplified enabling of spotbugs html and xml reports
Browse files Browse the repository at this point in the history
  • Loading branch information
bwRavencl committed Aug 17, 2023
1 parent 2571e54 commit b7be9bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,11 @@ spotbugs {
reportLevel = spotbugsReportLevel
}

tasks.withType(SpotBugsTask).configureEach {
reports({
tasks.withType(SpotBugsTask) {
reports {
html { required.set(true) }
xml { required.set(true) }
} as Closure<NamedDomainObjectContainer<? extends SpotBugsReport>>)
}
}

spotless {
Expand Down

0 comments on commit b7be9bf

Please sign in to comment.