mirror of https://github.com/apache/kafka.git
KAFKA-16805 Stop using a ClosureBackedAction to configure Spotbugs reports (#16081)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
parent
91284d8d7b
commit
a57c05b73b
|
@ -742,8 +742,8 @@ subprojects {
|
|||
}
|
||||
test.dependsOn('spotbugsMain')
|
||||
|
||||
tasks.withType(com.github.spotbugs.snom.SpotBugsTask) {
|
||||
reports {
|
||||
tasks.withType(com.github.spotbugs.snom.SpotBugsTask).configureEach {
|
||||
reports.configure {
|
||||
// Continue supporting `xmlFindBugsReport` for compatibility
|
||||
xml.enabled(project.hasProperty('xmlSpotBugsReport') || project.hasProperty('xmlFindBugsReport'))
|
||||
html.enabled(!project.hasProperty('xmlSpotBugsReport') && !project.hasProperty('xmlFindBugsReport'))
|
||||
|
|
Loading…
Reference in New Issue