Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.72 KB

RELEASEINST.md

File metadata and controls

52 lines (35 loc) · 1.72 KB

Release Instructions

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".

New releases

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

Full release workflow

The development team use these steps to build and upload a release.

  1. Update the CHANGELOG.md.

    Make sure to add the relevant "Added", "Changed", "Deprecated", "Removed", "Fixed", and "Security" sections as suggested by keep a changelog.

  2. Update version in build.gradle and commit. For example: version = '2.0.0' should become version = '2.1.0'.

    git add build.gradle CHANGELOG.md
    git commit -m "Nakama Java 2.0.0 release."
    
  3. 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
    
  4. Login and create a new draft release on GitHub. Repeat the changelog in the release description. Then publish the release.

  5. Add new ## [Unreleased] section to start of CHANGELOG.md. Increment version in build.gradle and commit. i.e. version = '2.0.0' should now become version = '2.1.0'.

    git add build.gradle CHANGELOG.md
    git commit -m "Set new development version."
    git push origin master