-
Notifications
You must be signed in to change notification settings - Fork 11
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
Help with Prerelease #37
Comments
Please have a look at https://github.com/tschulte/gradle-semantic-release-test/blob/master/build.gradle.
|
Hi Tobias, i've tried your suggested configuration in my current project and in a clean repo. And it doesn't generate the rc.X suffix. On my clean master branch I get the following output when I run my printVersion Task:
on my branch rc/1.0.0 the output is
My printVersion Task just prints the value of project.version My build.gradle looks like yours in your test project except that I'm using the Version 1.3.1 and removed the java tasks, as i don't have a Java project.
|
In the selector, it explicitly says
to only set the version, when doing a release. Unless you do a release, -SNAPSHOT IMHO is the right version. But feel free to remove that part. |
Hi Tobias, yep you are right. That was my mistake, sry. When I execute the task on my master branch a new Version 1.0.0 has been released in my repo.
And it doesn't create a rc.X release. |
I just checked using https://github.com/tschulte/gradle-semantic-release-test/.
Only when there is no feature or fix commit since the last tag, a SNAPSHOT will be built:
|
Hi,
I've been stuck in this problem for a while and I hope somebody can help me here.
My goal is to release new versions via semantic versioning on every Pull Request merge from our develop branch in our master. This works very well but additionally, I want to have prereleases generated on every push in our develop branch. The prereleases must have a version like vX.Y.Z-beta.1 or -rc.1 where the number after the dot is incremented automatically.
I've tried many things to achive this behaviour but ended every time in an SNAPSHOT Postfix. For example I had a Branch rc/1.0.0 and the inferred version was ...-rc-1-0-0-SNAPSHOT. I've tried to configure the plugin in our build.gradle with the versionStrategy and .copyWith() but got still no prerelease Version.
We are using the plugin in Version 1.3.1 together with grgit 2.2.0 listed in our dependencies.
Can anybody help me?
The text was updated successfully, but these errors were encountered: