jgitver / jgitver/jgitver-maven-plugin
Git commit ID is not getting appended to the computed version
- Dominant language
- Groovy
- Stars
- 166
- Forks
- 42
- PR merge metrics
- No merged PRs in 30d
Description
## Issue
**version**: 1.4.3
**usage context**:
- [x] maven command line: 3.5.2
**Problem description**:
I want to append the Git commit ID with the computed version, to enable this, have added `useGitCommitId` element in the _jgitver.config.xml_ file.
In the POM file, the version is **4.0.0-SNAPSHOT**, created a lightweight tag(v4.0.0) , `mvn validate` is returning the computed version with commit ID. eg:v4.0.0-abcdefgh
Now I want to release a minor version, created a lightweight tag(v4.1.0). The computed version is just returning **v4.1.0**, my expectation was that it would return a version with commit ID eg:v4.1.0-xyzabcpq.
Am I doing something wrong? Is it a bug or expected behavior, I don't see much documentation about appending the commit ID.
Contributor guide
Assessment
This issue has not been assessed yet.