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

Incrementing minor release during prerelease? #699

Open
am312 opened this issue Jan 17, 2024 · 0 comments
Open

Incrementing minor release during prerelease? #699

am312 opened this issue Jan 17, 2024 · 0 comments

Comments

@am312
Copy link

am312 commented Jan 17, 2024

What is the best way to increment minor (not patch) version numbers between releases and also when doing a prerelease?
Are there examples of custom versionIncrementor usages around?
I need behavior roughly like this:

./gradlew cV
1.0.0
./gradlew release -Prelease.versionIncrementer=incrementPrerelease 
1.1.0-RC1
./gradlew release -Prelease.versionIncrementer=incrementPrerelease 
1.1.0-RC2
./gradlew release
1.1.0
./gradlew release
1.2.0

or with a custom versionIncrementor, maybe like

./gradlew release -Prelease.versionIncrementer=myCustomPrereleaseIncrementor
1.3.0-RC1

I'm using axion-release-plugin v1.14.4.
Thanks

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