Open bl4ckh4t3 opened 3 years ago
@bl4ckh4t3 It feels odd to use start message in finish goal. You can change commit messages in your pom.
@aleksandr-m you are right. it feels odd. The problem is that when the useSnapshotInRelease is set to true, the releaseFinishMessage commit message is also used in the release branch to commit the update of version to the release one, removing the snapshot for instance. So if in pom the message is customized with "update to next development message" the same string appears also as the commit in release branch, where the real commit message should be something like "update to release version". I know the goal is release finish, but the line of code I changed is not about the development branch but about the release branch that normally is updated in release start goal unless useSnapshotInRelease is true. Maybe a new commit message for this scenario can be added so that it can be customized the same way it can be done if useSnapshotInRelease is false
You can customize it to be something more neutral. If it is really so important to you and you cannot change it to be more appropriate, then I guess we can add yet another message.
Change the message used to bump version to releaseVersion in releaseFinish step if useSnapshotInRelease is set to true. Previously both this message, occurring in release branche before merging, and the message on develop branch after merge were the same "Update for next development version". Now commit message for setting release version is Update versions for release as it is when release version is set during releaseStart step.