Skip to content

Git Version Plugin

Gradle Kotlin License: MIT

A lightweight Gradle plugin that automatically generates code and name directly from your Git history.
Perfect for Android projects and any build setup where you want Git-driven versioning.


Features

  • code → Derived from the total number of Git commits (git rev-list --count HEAD).
  • name → Dynamically generated (based on tags or commit count).
  • Zero config → Just apply the plugin and use the values.
  • Safe defaults → Falls back gracefully if Git is not available.

If you like this plugin, don’t forget to star the repo!

GitHub