I asked about this on the dev list in the past. Just wanted to give an FYI that some of the command names changed. "findBugsMain" -> "spotBugsMain".
FWIW, I now use this command: ./gradlew spotlessApply && ./gradlew checkstyleMain checkstyleTest javadoc spotbugsMain compileJava compileTestJava Hope this is useful, I put it on the wiki as well <https://cwiki.apache.org/confluence/display/BEAM/Java+Tips>.