Search Gradle plugins

com.zoltu.git-versioning

Automatically bumps your minor version with every git commit and gets major/minor from git tags. Also sets version in Java manifest.

https://github.com/Zoltu/Gradle.Plugin.Versioning

Version 2.0.18

Created 30 April 2016.

Automatically bumps your patch version with every git commit and gets major/minor version from git tags. Also sets version information and SHA in Java manifest.

Using the plugins DSL:

plugins {
  id "com.zoltu.git-versioning" version "2.0.18"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.com.zoltu.gradle.plugin:git-versioning:2.0.18"
  }
}

apply plugin: "com.zoltu.git-versioning"

Using the plugins DSL:

plugins {
  id("com.zoltu.git-versioning") version "2.0.18"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.com.zoltu.gradle.plugin:git-versioning:2.0.18")
  }
}

apply(plugin = "com.zoltu.git-versioning")

Learn how to apply plugins to subprojects