Search Gradle plugins

Using the plugins DSL:

plugins {
  id("co.elastic.license-headers") version "0.0.8"
}

Using legacy plugin application:

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

apply(plugin = "co.elastic.license-headers")

Using the plugins DSL:

plugins {
  id "co.elastic.license-headers" version "0.0.8"
}

Using legacy plugin application:

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

apply plugin: "co.elastic.license-headers"

Learn how to apply plugins to subprojects