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
useGitCommitTimestampand set it to true ; it is only available in thenon mavenmode of jgitver as it is a bit clashing with strict maven SNAPSHOTs.So if you have your
.mvn/jgitver.config.xmlconfig file that contains something like the following it will work:Here is an output of a local
mvn validateon jgitver-maven-plugin itself using such a configuration