Run Releasing.kts (preferably in system terminal as IDE could crash)
with kotlinc -script Releasing.kts
and follow the steps directly from the command line.
- Checkout the
develop
branch, if not already done. - Change the
thisLibrary
constant in the ProjectVersions file to a non-dev version. - Update the
README.md
with the new version. - Update the
CHANGELOG.md
for the impending release. - Run
git commit -am "Prepare for release X.Y.Z"
(where X.Y.Z is the new version). git tag -a vX.Y.Z -m "Version X.Y.Z"
(where X.Y.Z is the new version).- Run
./gradlew clean bintrayUpload
. - Run
git push origin
. - Create a pull request from the
develop
to themaster
branch on GitHub for the new version, if not already done. - Sign in on Bintray and publish the packages.
- Run
git push origin --tags
. - Merge the pull request for the new version on GitHub.
- Publish release on GitHub.
- Checkout the
master
branch. - Pull from GitHub repository to update the local
master
branch. - Checkout the
develop
branch. - Change the
thisLibrary
constant in the ProjectVersions file back to a-dev-
version. - Run
git commit -am "Prepare next development version."
. - Run
git push origin
.
- Make sure the
thisLibrary
constant in the ProjectVersions file is set to a-dev-
version. - Run
./gradlew clean bintrayUpload
.