researchgate / gradle-release

gradle-release is a plugin for providing a Maven-like release process for projects using Gradle
MIT License
868 stars 220 forks source link

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

Open fullben opened 1 year ago

fullben commented 1 year ago

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:

I would like to achieve the following behavior:

Hillkorn commented 3 months ago

If you set in the https://github.com/researchgate/gradle-release/blob/main/src/main/groovy/net/researchgate/release/ReleaseExtension.groovy#L107 usesSnapshot to true. Then it should work that way. It's picked up in the update version task https://github.com/researchgate/gradle-release/blob/main/src/main/groovy/net/researchgate/release/tasks/UpdateVersion.groovy#L34 .