Open otopetrik opened 5 years ago
Hi ! If you still want this I made this PATTERN conf workaround to achive this result.
<configuration xmlns="http://jgitver.github.io/maven/configuration/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jgitver.github.io/maven/configuration/1.1.0 https://jgitver.github.io/maven/configuration/jgitver-configuration-v1_1_0.xsd">
<strategy>PATTERN</strategy>
<versionPattern>${v}${-~meta.COMMIT_DISTANCE}${-g~meta.GIT_SHA1_8}</versionPattern>
</configuration>
Before submitting an issue I have first:
Found completed issue in the underlying library https://github.com/jgitver/jgitver/issues/24.
The functionality does not seem to be exposed in
jgitver-maven-plugin
.Issue
version: 1.5.1
usage context:
Problem description:
useGitCommitId
set totrue
the generated name does not contain '-g' before the hash e.g. in repository one commit afterv0.0.1
tag:...-0.0.1-1-d1590b8f
...-0.0.1-1-gd1590b8
Attempts:
<useLongFormat>true</useLongFormat>
in xml configuration fails with:setUseLongFormat
returns no results injgitver-maven-plugin
.