Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.zegreatrob.tools.digger") version "1.0.96"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.zegreatrob.tools:digger-plugin:1.0.96")
  }
}

apply(plugin = "com.zegreatrob.tools.digger")

Using the plugins DSL:

plugins {
  id "com.zegreatrob.tools.digger" version "1.0.96"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.zegreatrob.tools:digger-plugin:1.0.96"
  }
}

apply plugin: "com.zegreatrob.tools.digger"

Learn how to apply plugins to subprojects