Search Gradle plugins

Using the plugins DSL:

plugins {
  id("co.elastic.docker") version "1.0.14"
}

Using legacy plugin application:

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

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

Using the plugins DSL:

plugins {
  id "co.elastic.docker" version "1.0.14"
}

Using legacy plugin application:

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

apply plugin: "co.elastic.docker"

Learn how to apply plugins to subprojects