Search Gradle plugins

Using the plugins DSL:

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

Using legacy plugin application:

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

apply plugin: "online.colaba.docker"

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects