mirror of
https://github.com/heroiclabs/nakama-java.git
synced 2026-11-24 08:55:49 -10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
60cdc891e3 | ||
|
|
b93b814550 | ||
|
|
8090c059e9 |
No files matched your search
@@ -6,6 +6,10 @@ The format is based on [keep a changelog](http://keepachangelog.com/) and this p
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [2.1.1] - 2021-02-17
|
||||
### Changed
|
||||
- Allowed null values of `collationId` to be passed to the `DefaultError` object.
|
||||
|
||||
## [2.1.0] - 2020-01-25
|
||||
|
||||
### Added
|
||||
|
||||
+6
-25
@@ -1,7 +1,7 @@
|
||||
## Release Instructions
|
||||
|
||||
The current release infrastructure is built into the project's [build.gradle](https://github.com/heroiclabs/nakama-java/blob/master/build.gradle). You'll need both the
|
||||
JDK 1.7+ and `gradle` installed to generate release packages which can be uploaded to GitHub and deployed to `"jcenter"`.
|
||||
The current release infrastructure is built into the project's [build.gradle](https://github.com/heroiclabs/nakama-java/blob/master/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
|
||||
|
||||
@@ -19,10 +19,10 @@ 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
|
||||
Make sure to add the relevant "Added", "Changed", "Deprecated", "Removed", "Fixed", and "Security" sections as suggested by [keep a
|
||||
changelog](http://keepachangelog.com).
|
||||
|
||||
2. Update version in `build.gradle` and commit. i.e. `version = '2.0.0'` should become `version = '2.1.0'`.
|
||||
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
|
||||
@@ -38,29 +38,10 @@ changelog](http://keepachangelog.com).
|
||||
git push origin v2.0.0
|
||||
```
|
||||
|
||||
4. You can upload the release onto <a href="https://bintray.com/bintray/jcenter" target="\_blank">jcenter</a>. You must set the values in `"gradle.properties"` to your
|
||||
Bintray credentials.
|
||||
|
||||
```
|
||||
gradle -PvcsTag="v2.0.0" bintrayUpload
|
||||
```
|
||||
|
||||
5. Login and create a [new draft release](https://github.com/heroiclabs/nakama-java/releases/new) on GitHub. Repeat the changelog in the release description. Then publish
|
||||
4. Login and create a [new draft release](https://github.com/heroiclabs/nakama-java/releases/new) on GitHub. Repeat the changelog in the release description. Then publish
|
||||
the release.
|
||||
|
||||
6. Add the previous version of the docs to the `"preserve"` closure in the build script. Deploy the latest Javadoc to GitHub Pages.
|
||||
|
||||
```
|
||||
preserve {
|
||||
include '0.1.0/**'
|
||||
}
|
||||
```
|
||||
|
||||
```
|
||||
gradle gitPublishPush
|
||||
```
|
||||
|
||||
7. 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 =
|
||||
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'`.
|
||||
|
||||
```
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2020 Heroic Labs
|
||||
* Copyright 2021 Heroic Labs
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -43,7 +43,7 @@ plugins {
|
||||
}
|
||||
|
||||
group = 'com.github.heroiclabs'
|
||||
version = '2.0.5-SNAPSHOT'
|
||||
version = '2.1.1'
|
||||
def description = 'Android optimized Java client for Nakama server.'
|
||||
|
||||
sourceCompatibility = 1.8
|
||||
|
||||
@@ -30,9 +30,9 @@ class DefaultError extends Error {
|
||||
this.collationId = null;
|
||||
}
|
||||
|
||||
DefaultError(@NonNull final String collationId, @NonNull final WebSocketError error) {
|
||||
DefaultError(final String collationId, @NonNull final WebSocketError error) {
|
||||
super(error.getMessage());
|
||||
this.code = ErrorCode.fromInt(error.getCode());
|
||||
this.collationId = collationId;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user