Search Gradle plugins

Using the plugins DSL:

plugins {
  id "com.javiersc.gradle.plugins.versioning" version "0.1.0-alpha.61"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.javiersc.gradle-plugins:versioning:0.1.0-alpha.61"
  }
}

apply plugin: "com.javiersc.gradle.plugins.versioning"

Using the plugins DSL:

plugins {
  id("com.javiersc.gradle.plugins.versioning") version "0.1.0-alpha.61"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.javiersc.gradle-plugins:versioning:0.1.0-alpha.61")
  }
}

apply(plugin = "com.javiersc.gradle.plugins.versioning")

Learn how to apply plugins to subprojects