Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need meta.COMMIT_DISTANCE_TO_ROOT exposed as a Maven property #174

Open
1 task done
kebeda opened this issue Mar 24, 2022 · 1 comment
Open
1 task done

Need meta.COMMIT_DISTANCE_TO_ROOT exposed as a Maven property #174

kebeda opened this issue Mar 24, 2022 · 1 comment

Comments

@kebeda
Copy link

kebeda commented Mar 24, 2022

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?

@kebeda
Copy link
Author

kebeda commented Mar 25, 2022

Hmmm...it appears that meta.COMMIT_DISTANCE also isn't exposed as a maven property...will need to add this too @McFoggy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant