Search Gradle plugins

Using the plugins DSL:

plugins {
  id "online.colaba.docker" version "0.1.4"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.online.colaba:docker:0.1.4"
  }
}

apply plugin: "online.colaba.docker"

Using the plugins DSL:

plugins {
  id("online.colaba.docker") version "0.1.4"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.online.colaba:docker:0.1.4")
  }
}

apply(plugin = "online.colaba.docker")

Learn how to apply plugins to subprojects