Search Gradle plugins

Using the plugins DSL:

plugins {
  id "org.wellijohn.greeting" version "2.0.9.18"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.com.foo.myplugin:ajc:2.0.9.18"
  }
}

apply plugin: "org.wellijohn.greeting"

Using the plugins DSL:

plugins {
  id("org.wellijohn.greeting") version "2.0.9.18"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.com.foo.myplugin:ajc:2.0.9.18")
  }
}

apply(plugin = "org.wellijohn.greeting")

Learn how to apply plugins to subprojects