Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.hello2morrow.sonargraph") version "13.0.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.hello2morrow:sonargraph-gradle-plugin:13.0.2")
  }
}

apply(plugin = "com.hello2morrow.sonargraph")

Using the plugins DSL:

plugins {
  id "com.hello2morrow.sonargraph" version "13.0.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.hello2morrow:sonargraph-gradle-plugin:13.0.2"
  }
}

apply plugin: "com.hello2morrow.sonargraph"

Learn how to apply plugins to subprojects