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

Allow property for release type #172

Open
cdschneider opened this issue May 17, 2016 · 1 comment
Open

Allow property for release type #172

cdschneider opened this issue May 17, 2016 · 1 comment

Comments

@cdschneider
Copy link
Contributor

release.useAutomaticVersion is nice for Jenkins/CI builds where the tagged version will be the version minus the -SNAPSHOT but when people want to cut major, minor, bug-fix releases (among other release types based on other versioning strategies), they need to specify the release.releaseVersion property to whatever version they want every time they cut a release.

It'd be nice if we could automate the setting of the releaseVersion property based on the release "type" that a user wants.

So along with using the release.useAutomaticVersion flag, we could make an optional second and/or complementary flag that looks something like:

$ ./gradlew release -Prelease.useAutomaticVersion=true -Prelease.releaseType=<bug|minor|major>

This would:

  1. Skip the prompt for confirming the release version
  2. Change version to the correct next non-SNAPSHOT version for tag/release. ie if development version is 1.0.1-SNAPSHOT and I want to cut a major release, the tag would actually get bumped prior to release to 2.0.0. If I wanted a minor release, the tag would get bumped to 1.1.0.
@mageddo
Copy link

mageddo commented Jul 18, 2017

This is a great feature

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

No branches or pull requests

3 participants