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

Sources: 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.

Add this plugin to your build using the plugins DSL:

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

See also:

  • Adding the plugin to build logic for usage in precompiled script plugins.

    See the relevant documentation for more information.

    Add this plugin as a dependency to <convention-plugins-build>/build.gradle(.kts):

    dependencies {
      implementation("com.zoltu.git-versioning:com.zoltu.git-versioning.gradle.plugin:3.0.3")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("com.zoltu.git-versioning")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("com.zoltu.git-versioning:com.zoltu.git-versioning.gradle.plugin:3.0.3")
      }
    }
    
    apply(plugin = "com.zoltu.git-versioning")
  • Applying plugins to all subprojects .