Search Gradle plugins

Using the plugins DSL:

plugins {
  id("name.remal.sonarlint") version "3.1.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("name.remal.gradle-plugins.sonarlint:sonarlint:3.1.1")
  }
}

apply(plugin = "name.remal.sonarlint")

Using the plugins DSL:

plugins {
  id "name.remal.sonarlint" version "3.1.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "name.remal.gradle-plugins.sonarlint:sonarlint:3.1.1"
  }
}

apply plugin: "name.remal.sonarlint"

Learn how to apply plugins to subprojects