Search Gradle plugins

Using the plugins DSL:

plugins {
  id("co.elastic.lifecycle") version "0.1.3"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("co.elastic.gradle:lifecycle:0.1.3")
  }
}

apply(plugin = "co.elastic.lifecycle")

Using the plugins DSL:

plugins {
  id "co.elastic.lifecycle" version "0.1.3"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "co.elastic.gradle:lifecycle:0.1.3"
  }
}

apply plugin: "co.elastic.lifecycle"

Learn how to apply plugins to subprojects