The current release infrastructure is built into the project's build.gradle. You'll need both the
JDK 1.8+ and gradle
installed to generate release packages which can be uploaded to GitHub and deployed to "jcenter"
.
To generate a new package run gradle build shadowJar
. You can find the generated build artifacts in "build/libs"
.
build/libs/
├── nakama-java-${version}-all.jar
└── nakama-java-${version}.jar
The development team use these steps to build and upload a release.
-
Update the
CHANGELOG.md
.Make sure to add the relevant "Added", "Changed", "Deprecated", "Removed", "Fixed", and "Security" sections as suggested by keep a changelog.
-
Update version in
build.gradle
and commit. For example:version = '2.0.0'
should becomeversion = '2.1.0'
.git add build.gradle CHANGELOG.md git commit -m "Nakama Java 2.0.0 release."
-
Tag the release.
Note In source control good semver suggests a
"v"
prefix on a version. It helps group release tags.git tag -a v2.0.0 -m "v2.0.0" git push origin v2.0.0
-
Login and create a new draft release on GitHub. Repeat the changelog in the release description. Then publish the release.
-
Add new
## [Unreleased]
section to start ofCHANGELOG.md
. Increment version inbuild.gradle
and commit. i.e.version = '2.0.0'
should now becomeversion = '2.1.0'
.git add build.gradle CHANGELOG.md git commit -m "Set new development version." git push origin master