Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.javiersc.semver.gradle.plugin") version "0.2.0-alpha.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.javiersc.semver:semver-gradle-plugin:0.2.0-alpha.2")
  }
}

apply(plugin = "com.javiersc.semver.gradle.plugin")

Using the plugins DSL:

plugins {
  id "com.javiersc.semver.gradle.plugin" version "0.2.0-alpha.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.javiersc.semver:semver-gradle-plugin:0.2.0-alpha.2"
  }
}

apply plugin: "com.javiersc.semver.gradle.plugin"

Learn how to apply plugins to subprojects