Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.sarhanm.version-resolver") version "2.1.47"
}

Using legacy plugin application:

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

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

Using the plugins DSL:

plugins {
  id "com.sarhanm.version-resolver" version "2.1.47"
}

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects