Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.github.bartk89.simple-version") version "1.0.2-SNAPSHOT"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.com.github.bartk89:simple-version:1.0.2-SNAPSHOT")
  }
}

apply(plugin = "com.github.bartk89.simple-version")

Using the plugins DSL:

plugins {
  id "com.github.bartk89.simple-version" version "1.0.2-SNAPSHOT"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.com.github.bartk89:simple-version:1.0.2-SNAPSHOT"
  }
}

apply plugin: "com.github.bartk89.simple-version"

Learn how to apply plugins to subprojects