jgitver / jgitver/jgitver-maven-plugin

Need meta.COMMIT_DISTANCE_TO_ROOT exposed as a Maven property

Open
#174 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Groovy
Stars
166
Forks
42
PR merge metrics
No merged PRs in 30d

Description

## Issue

**version**: 1.9.0

**usage context**: `mvn validate`

- [x] maven command line: 3.8.5

**Problem description**:

Using strategy=PATTERN and defining in the `jgitver.config.xml`:
```
${v}${-~meta.QUALIFIED_BRANCH_NAME}${+~meta.COMMIT_DISTANCE_TO_ROOT}
```
Never results in the the `COMMIT_DISTANCE_TO_ROOT` property being populated, even when `useCommitDistance` is `true`.

How to get this information into a Maven property?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.