Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.sarhanm.version-resolver") version "1.0.83.master.c2677f5"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.sarhanm:gradle-versioner:1.0.83.master.c2677f5")
  }
}

apply(plugin = "com.sarhanm.version-resolver")

Using the plugins DSL:

plugins {
  id "com.sarhanm.version-resolver" version "1.0.83.master.c2677f5"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.sarhanm:gradle-versioner:1.0.83.master.c2677f5"
  }
}

apply plugin: "com.sarhanm.version-resolver"

Learn how to apply plugins to subprojects