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

support to increase x or y in version of x.y.z, not only z #539

Closed
valuetodays opened this issue Jan 22, 2022 · 2 comments · Fixed by #642
Closed

support to increase x or y in version of x.y.z, not only z #539

valuetodays opened this issue Jan 22, 2022 · 2 comments · Fixed by #642

Comments

@valuetodays
Copy link

valuetodays commented Jan 22, 2022

Assume current version is 1.0.0-SNAPSHOT.

I can set version to 1.0.1-SNAPSHOTby mvn versions:set -DnextSnapshot.
In math, I can set version to the following:

  • 1.0.1-SNAPSHOT (finished yet)
  • 1.1.0-SNAPSHOT
  • 2.0.0-SNAPSHOT

I think it's useful.

@jarmoniuk
Copy link
Contributor

I'll do it

jarmoniuk added a commit to jarmoniuk/versions-maven-plugin that referenced this issue Aug 20, 2022
jarmoniuk added a commit to jarmoniuk/versions-maven-plugin that referenced this issue Aug 20, 2022
jarmoniuk added a commit to jarmoniuk/versions-maven-plugin that referenced this issue Aug 20, 2022
jarmoniuk added a commit to jarmoniuk/versions-maven-plugin that referenced this issue Aug 20, 2022
jarmoniuk added a commit to jarmoniuk/versions-maven-plugin that referenced this issue Aug 20, 2022
jarmoniuk added a commit to jarmoniuk/versions-maven-plugin that referenced this issue Aug 20, 2022
jarmoniuk added a commit to jarmoniuk/versions-maven-plugin that referenced this issue Aug 20, 2022
jarmoniuk added a commit to jarmoniuk/versions-maven-plugin that referenced this issue Aug 20, 2022
jarmoniuk added a commit to jarmoniuk/versions-maven-plugin that referenced this issue Aug 20, 2022
@cordahi
Copy link

cordahi commented Nov 22, 2023

Would it be possible to change the behaviour of this feature to follow standard semantic versioning?
I recently opened #1021

If starting from version 1.2.3-SNAPSHOT,

  • mvn -DnextSnapshot -DnextSnapshotIndexToIncrement=2 versions:set should result in version 1.3.0-SNAPSHOT
  • mvn -DnextSnapshot -DnextSnapshotIndexToIncrement=1 versions:set should result in version 2.0.0-SNAPSHOT

What is the use case of the current behaviour that preserves the rightmost digits?

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

Successfully merging a pull request may close this issue.

4 participants