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 3.0.3 (latest)

Created 09 March 2017.

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 "3.0.3"
}

Using legacy plugin application:

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects