Release procedure for Kotlin Formatter.
-
Create a new branch for the release:
git checkout -b release-x.y.z
-
Bump version number in
gradle.properties
to next stable version (removing the-SNAPSHOT
suffix). -
Update
CHANGELOG.md
:- Change the
Unreleased
header to the release version e.g.[x.y.z] - YYYY-MM-DD
. - Add a new
Unreleased
section to the top.## [Unreleased] ### New: - Nothing yet! ### Changed: - Nothing yet! ### Fixed: - Nothing yet!
- Change the
-
Update
README.md
if needed. -
Commit:
$ git commit -am "chore: prepare for release x.y.z."
-
Push the branch and create a pull request.
- Once the PR is approved and merged, check out
main
and pull the latest changes. - Tag the release:
git tag -am "Version x.y.z" x.y.z
- Push the tag
git push origin x.y.z
The tag will trigger a GitHub Action workflow which will upload the artifacts to Maven Central and create a GitHub release.
Releases of the IntelliJ IDEA plugin are subject to JetBrains' manual approval for every version. While the official documentation states that approval may take 2–3 business days, in practice, the plugin may appear on the JetBrains Marketplace within approximately 3 hours.
- Once the publish is done, update version number
gradle.properties
to next snapshot version (x.y.z-SNAPSHOT
). - Commit:
$ git commit -am "chore: prepare next development version."
- Push the branch and create a pull request.
- Once the publish is done, update version number
gradle.properties
to next snapshot version (x.y.z-SNAPSHOT
). - Commit:
$ git commit -am "chore: prepare next development version."
- Push the branch and create a pull request.