Search Gradle plugins

Using the plugins DSL:

plugins {
  id "org.gradle.guides.base" version "0.11"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.org.gradle.guides:gradle-guides-plugin:0.11"
  }
}

apply plugin: "org.gradle.guides.base"

Using the plugins DSL:

plugins {
  id("org.gradle.guides.base") version "0.11"
}

Using legacy plugin application:

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

apply(plugin = "org.gradle.guides.base")

Learn how to apply plugins to subprojects