Search Gradle plugins

Version 2.0.0 (latest)

Created 10 January 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.0.

Using the plugins DSL:

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

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("se.solrike.sonarlint:sonarlint-gradle-plugin:2.0.0")
  }
}

apply(plugin = "se.solrike.sonarlint")

Using the plugins DSL:

plugins {
  id "se.solrike.sonarlint" version "2.0.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "se.solrike.sonarlint:sonarlint-gradle-plugin:2.0.0"
  }
}

apply plugin: "se.solrike.sonarlint"

Learn how to apply plugins to subprojects