To run FindBugs in Gradle, just write findbugs {}
in your subproject.
However, as it is, the result is output only in XML, not in HTML.
I will introduce how to output in HTML.
(For Android) Describe the following in the subproject build.gradle
.
build.gradle
tasks.withType(FindBugs) {
reports {
xml.enabled = false //You can stop the XML output by writing this
html.enabled = true
}
}
This will output the FindBugs results in HTML.
https://stackoverflow.com/questions/15406469/how-to-generate-html-output-using-gradle-findbugs-plugin