- Bump the VERSION_NAME property in
gradle.properties
based on Major.Minor.Patch naming scheme - Add your sonatype login information under gradle properties mavenCentralUsername and mavenCentralPassword in your local user gradle.properties file
- Run
./gradlew publish
to build the artifacts and publish them to maven - Then run
./commitAndTagRelease.sh Major.Minor.Patch
with your version number- eg "./commitAndTagRelease.sh 3.0.1"
- This will make a commit with the given release number and add the version tag
- It will then push the tag to github
- A github action will automatically run when the tag is pushed to generate a github release for this version
- Automated publishing only works if commit is tagged starting with "v". commitAndTagRelease script does this for you when passing a semver version number.
- The release will automatically generate release notes from the commits since last release. You may want to manually edit the release notes to add more details.
- The script will also open up the branch for a PR in github
- If there is additional relevant information about the release that isn't captured in the commit history you should add it to the PR description as well as to the release summary
- Manually merge the PR branch to main, but at this point the release is already public.
If testing changes locally, you can install to mavenLocal via ./gradlew publishToMavenLocal