Search Gradle plugins

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

apply plugin: "com.hello2morrow.sonargraph"

Learn how to apply plugins to subprojects