Search Gradle plugins

Using the plugins DSL:

plugins {
  id("net.wooga.version") version "3.2.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("net.wooga.gradle:version:3.2.0")
  }
}

apply(plugin = "net.wooga.version")

Using the plugins DSL:

plugins {
  id "net.wooga.version" version "3.2.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "net.wooga.gradle:version:3.2.0"
  }
}

apply plugin: "net.wooga.version"

Learn how to apply plugins to subprojects