SpotBugs is licensed under the GNU LESSER GENERAL PUBLIC LICENSE.
SpotBugs is built using Gradle. The recommended way to obtain it is to simply run the
gradlew.bat) wrapper, which will automatically download and run the correct version as needed (using the settings in
Building SpotBugs requires JDK 21 to run all the tests (using SpotBugs requires JDK 8 or above).
To see a list of build options, run
gradle tasks (or
gradlew tasks). The
build task will perform a full build and test.
To build the SpotBugs plugin for Eclipse, you'll need to create the file
eclipsePlugin/local.properties, containing a property
eclipseRoot.dir that points to an Eclipse installation's root directory (see
.github/workflows/release.yml for an example), then run the build. To prepare Eclipse environment only, run
./gradlew eclipse. See also detailed steps.
SpotBugs can be used standalone and through several integrations, including:
You can contact us using GitHub Discussions.