Search Gradle plugins

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects