https://docs.gradle.org/current/userguide/jacoco_plugin.html
./gradlew test
./gradlew jacocoTestReport
./gradlew jacocoTestCoverageVerification
https://github.com/spotbugs/spotbugs-gradle-plugin
This plugin also have plugins (plugin in plugin)
spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.11.0'
To run
./gradlew check
https://docs.gradle.org/current/userguide/pmd_plugin.html
Rule-sets refs:
- https://pmd.github.io/pmd-6.44.0/pmd_userdocs_making_rulesets.html
- https://github.com/pmd/pmd/tree/master/pmd-java/src/main/resources/rulesets/java
Blog example using external config files PREFERRED:
To run
./gradlew check
https://plugins.gradle.org/plugin/org.owasp.dependencycheck
Refs:
To run
./gradlew dependencyCheckAnalyze