Search Gradle plugins

Using the plugins DSL:

plugins {
  id("co.elastic.elastic-conventions") version "0.1.7"
}

Using legacy plugin application:

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

apply(plugin = "co.elastic.elastic-conventions")

Using the plugins DSL:

plugins {
  id "co.elastic.elastic-conventions" version "0.1.7"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "co.elastic.gradle:elastic-conventions:0.1.7"
  }
}

apply plugin: "co.elastic.elastic-conventions"

Learn how to apply plugins to subprojects