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

Expose modified project version as properties #41

Closed
jycr opened this issue Mar 30, 2017 · 4 comments
Closed

Expose modified project version as properties #41

jycr opened this issue Mar 30, 2017 · 4 comments

Comments

@jycr
Copy link

jycr commented Mar 30, 2017

I would like to customize commit message as follow :

    <commitMessages>
        <hotfixStartMessage>update versions for hotfix: ${project.version}</hotfixStartMessage>
        <hotfixFinishMessage>update for next development version: ${project.version}</hotfixFinishMessage>
        
        <releaseStartMessage>update versions for release: ${project.version}</releaseStartMessage>
        <releaseFinishMessage>update for next development version: ${project.version}</releaseFinishMessage>
        
        <tagHotfixMessage>tag hotfix: ${project.version}</tagHotfixMessage>
        <tagReleaseMessage>tag release: ${project.version}</tagReleaseMessage>
    </commitMessages>

But, as described in documentation:

${project.version} can be used any changes to version introduced by this goal won't be reflected in a commit message for this goal.

So: how can I put information on commit message about version?

@aleksandr-m
Copy link
Owner

I suppose that custom pattern can be introduced (e.g. {{version}}) to be string replaced in the appropriate goals.

@jycr
Copy link
Author

jycr commented Apr 3, 2017

Good idea.

Another proposal : add a Maven property :

  • gitflow.nextVersion

NB : The default value of this property could be X.Y.(Z+1)-SNAPSHOT and can also be customize when user launch mvn command with -Dgitflow.nextVersion= ... (see issue #42 )

@aleksandr-m
Copy link
Owner

How do you set the default value to be X.Y.(Z+1)-SNAPSHOT before running a goal?

@aleksandr-m
Copy link
Owner

From the next release @{version} can be used.

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

2 participants