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

Question: Behavior of plugin while preparing new version commit #378

Open
fullben opened this issue Apr 14, 2023 · 1 comment
Open

Question: Behavior of plugin while preparing new version commit #378

fullben opened this issue Apr 14, 2023 · 1 comment

Comments

@fullben
Copy link

fullben commented Apr 14, 2023

I'm using this plugin in a project with minimal configuration:

release {
    git {
        requireBranch.set('my-branch-pattern')
        pushToRemote.set('origin')
    }
}

I have observed the following behavior:

  • When I trigger the release from a branch where my project's version (maintained in the gradle.properties file) ends with -SNAPSHOT, the plugin will postfix the new version set during the new version commit with -SNAPSHOT.
  • When i trigger the release from a branch where my project's version does not end with -SNAPSHOT (e.g. 1.0.1), then the plugin will not postfix the new version set during the new version commit with -SNAPSHOT.

I would like to achieve the following behavior:

  • I want to have the new version defined during the new version commit to always be postfixed with -SNAPSHOT. Is this possible?
@Hillkorn
Copy link
Collaborator

Hillkorn commented Jul 8, 2024

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

2 participants