This project contains scripts that help release process for gradle projects. This script needs bash
command.
Here is details (written in Japanese).
- Install
gh
command, then rungh auth login
to authenticate for the first time. - Install
gren
command, then set environment variable ofGREN_GITHUB_TOKEN
. - Change
Git clone depth
in AWS CodeBuild toFull
if you build on AWS CodeBuild. - Update build.gradle in your project.
- Add rebula.release plugin to plugins in build.gradle (e.g.
id 'nebula.release' version '15.3.0'
). - Add task dependency if necessary. (e.g.
tasks.release.dependsOn ":dipper-common-core:publish", ":dipper-common-pdf:publish"
)
- Add rebula.release plugin to plugins in build.gradle (e.g.
- Change current branch to master (or main)
- Bump up the minor version, then publish it. If you want to change major or patch version, add the following parameter.
release.sh -Prelease.scope=major
release.sh -Prelease.scope=patch
- Create a new release version, then write the history from the previous release version.
Because this repository connects each task of release process like a chain with nebula plugin.