Search Gradle plugins

Using the plugins DSL:

plugins {
  id("org.ajoberstar.release-base") version "1.6.0-rc.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("org.ajoberstar:gradle-git:1.6.0-rc.1")
  }
}

apply(plugin = "org.ajoberstar.release-base")

Using the plugins DSL:

plugins {
  id "org.ajoberstar.release-base" version "1.6.0-rc.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "org.ajoberstar:gradle-git:1.6.0-rc.1"
  }
}

apply plugin: "org.ajoberstar.release-base"

Learn how to apply plugins to subprojects