This project contains scripts that help release process for gradle projects. This script needs bash command.
Here is details (written in Japanese).
- Install
ghcommand, then rungh auth loginto authenticate for the first time. - Install
grencommand, then set environment variable ofGREN_GITHUB_TOKEN. - Change
Git clone depthin AWS CodeBuild toFullif 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=majorrelease.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.