I'm evaluating the jgitver Maven extension for calculating artefact versions from git metadata.
jgitver provides the commit datetime in a property called jgitver.head_commit_datetime
, but I can't figure out how to include the timestamp in the version string.
Can anyone help?
@otto.poellath, you can use the configuration property
useGitCommitTimestamp
and set it to true ; it is only available in thenon maven
mode of jgitver as it is a bit clashing with strict maven SNAPSHOTs.So if you have your
.mvn/jgitver.config.xml
config file that contains something like the following it will work:Here is an output of a local
mvn validate
on jgitver-maven-plugin itself using such a configuration