Search Gradle plugins

Version 4.1.9 (latest)

4.1.9

Created 24 August 2021.

Set the project version based on git metatdata and number of commits. Example: 1.0.81.master.efbb95a

Using the plugins DSL:

plugins {
  id("com.sarhanm.versioner") version "4.1.9"
}

Using legacy plugin application:

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

apply(plugin = "com.sarhanm.versioner")

Using the plugins DSL:

plugins {
  id "com.sarhanm.versioner" version "4.1.9"
}

Using legacy plugin application:

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

apply plugin: "com.sarhanm.versioner"

Learn how to apply plugins to subprojects