Search Gradle plugins

Using the plugins DSL:

plugins {
  id("org.kordamp.gradle.sonar") version "0.46.9"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("org.kordamp.gradle:sonar-gradle-plugin:0.46.9")
  }
}

apply(plugin = "org.kordamp.gradle.sonar")

Using the plugins DSL:

plugins {
  id "org.kordamp.gradle.sonar" version "0.46.9"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "org.kordamp.gradle:sonar-gradle-plugin:0.46.9"
  }
}

apply plugin: "org.kordamp.gradle.sonar"

Learn how to apply plugins to subprojects