Search Gradle plugins

com.github.spotbugs

Performs quality checks on your project's Java source files using SpotBugs and generates reports from these checks

https://github.com/spotbugs/spotbugs-gradle-plugin

Sources: https://github.com/spotbugs/spotbugs

Add this plugin to your build using the plugins DSL:

plugins {
  id("com.github.spotbugs") version "6.0.2"
}

See also:

  • The legacy method of plugin application.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("com.github.spotbugs.snom:spotbugs-gradle-plugin:6.0.2")
      }
    }
    
    apply(plugin = "com.github.spotbugs")
  • Applying plugins to all subprojects .