Skip to content

Need meta.COMMIT_DISTANCE_TO_ROOT exposed as a Maven property #174

@kebeda

Description

@kebeda

Issue

version: 1.9.0

usage context: mvn validate

  • maven command line: 3.8.5

Problem description:

Using strategy=PATTERN and defining in the jgitver.config.xml:

<versionPattern>${v}${-~meta.QUALIFIED_BRANCH_NAME}${+~meta.COMMIT_DISTANCE_TO_ROOT}</versionPattern>

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions