- Create a local release branch from
main
git checkout main
git pull
git checkout -b release_0.1.0
- Update
VERSION
in affectedmoduledetector/build.gradle
(remove -SNAPSHOT
)
git commit -am "Prepare 0.1.0 release"
git tag v0.1.0
git push origin v0.1.0
./gradlew publishMavenPublicationToMavenRepository -PSONATYPE_USERNAME=<username> -PSONATYPE_PASSWORD=<password>
- Merge the release branch to main
git checkout main
git pull
git merge --no-ff release_0.1.0
- Update
version
in affectedmoduledetector/build.gradle
(increase version and add -SNAPSHOT
)
VERSION = "REPLACE_WITH_NEXT_VERSION_NUMBER-SNAPSHOT"
git commit -am "Prepare for development phase"