Search Gradle plugins

Version 2.1.0 (latest)

Created 17 August 2024.

Sonarlint static code analysis using stand-alone Sonarlint engine, for Java, Kotlin, Scala and Node.js projects. But other languages are also possible to lint like Ruby and Golang. It is possible to include and exclude rules and also list the rules in the Sonarlist plugins you depend on. If the plugin is configured with an incopatible Sonarlint plugin the build will fail. The plugin supports Gradle configuration cache. The plugin can produce Spotbugs compatible XML reports and also SARIF which can be used by Github actions, Jenkins, AWS CodeCatalyst and Azure DevOps. Min Gradle version 7.5.

Add this plugin to your build using the plugins DSL:

plugins {
  id("se.solrike.sonarlint") version "2.1.0"
}

See also:

  • Adding the plugin to build logic for usage in precompiled script plugins.

    See the relevant documentation for more information.

    Add this plugin as a dependency to <convention-plugins-build>/build.gradle(.kts):

    dependencies {
      implementation("se.solrike.sonarlint:se.solrike.sonarlint.gradle.plugin:2.1.0")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("se.solrike.sonarlint")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("se.solrike.sonarlint:se.solrike.sonarlint.gradle.plugin:2.1.0")
      }
    }
    
    apply(plugin = "se.solrike.sonarlint")
  • Applying plugins to all subprojects .