-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Current process
The package version is automatically detected via com.palantir.git-version:
- take the latest tag as package version
- if the branch is not
masteror another release branch, or the current commit is not a tag, append the-SNAPSHOTsuffix
In my opinion, this is sub-optimal:
- you need the release tag before developing on the new version
- if there are multiple releases branches, e.g. updated "old" versions, there may be a newer tag than the "latest" release, which may result in confusion
Proposal for improvement
- configure the version in
gradle.propertieswhen development on a new version begins - each commit will create a snapshot build and publish to snapshot repository
- when you want to create a new release...
- create a detached checkout of the release branch (master)
- remove snapshot suffix and set maven repo to release --> will be release
- commit the change and create a tag from that
- push the tag (its ancestor will be the last commit of the master branch, but following commits to master will ignore it)
- build and publish release
Tasks
- manual versioning with detached commits and tags
- gradle release plugin