palantir / gradle-git-version

a Gradle plugin that uses `git describe` to produce a version string.
Apache License 2.0
382 stars 76 forks source link

Get commitDistance to specified tag #833

Open sdorof1 opened 2 months ago

sdorof1 commented 2 months ago

I need version number in format:

major.minor.patch.build

where major.minor.patch part come from git tag, and build part should be number increment for each build. I would like to use as build-part a commitDistance but not to last tag and to first repository commit or to a specified tag, for example "0.0.0" which I tagged a first commit. Is it possible to modify versionDetails to support such global commitDistance?