diff --git a/CHANGELOG b/CHANGELOG index 5627716c3..e057fa970 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,9 @@ + +05-10-16 - 4.0.0-beta2 +- reworking of message queue +- checkstyle, findbugs +- reworking error notifications + 05-02-16 - 4.0.0-beta1 - initial beta1 diff --git a/README.md b/README.md index 045398ac0..3853f1e11 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,6 @@ [![Download](https://api.bintray.com/packages/bintray/jcenter/com.pubnub%3Apubnub/images/download.svg)](https://bintray.com/bintray/jcenter/com.pubnub%3Apubnub/_latestVersion) [![Maven Central](https://img.shields.io/maven-central/v/com.pubnub/pubnub.svg)]() -### [Documentation](https://gist.github.com/MaxPresman/5a457ccbd85b33d65c9ee98aaad8311e) +### [Documentation](https://www.pubnub.com/docs/java/pubnub-java-sdk-v4) diff --git a/build.gradle b/build.gradle index 6e95087a3..69967b2fb 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,7 @@ plugins { id 'io.franzbecker.gradle-lombok' version '1.6' id 'com.github.johnrengelman.shadow' version '1.2.3' + id "com.bmuschko.nexus" version "2.3.1" id 'java' id 'jacoco' id 'maven' @@ -57,6 +58,10 @@ checkstyle { toolVersion = '6.17' } +task myJavadocs(type: Javadoc) { + source = sourceSets.main.allJava +} + tasks.withType(Checkstyle) { exclude '**/vendor/**', "**/PubNubError.java", "**/*Test*" @@ -82,3 +87,15 @@ check.dependsOn jacocoTestReport processResources { expand projectVersion: project.version } + +extraArchive { + sources = true + tests = true + javadoc = true +} + +nexus { + sign = true + repositoryUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/' + snapshotRepositoryUrl = 'https://oss.sonatype.org/content/repositories/snapshots' +} diff --git a/src/main/java/com/pubnub/api/PubNubError.java b/src/main/java/com/pubnub/api/PubNubError.java index 83646c5cb..79ecb6f22 100644 --- a/src/main/java/com/pubnub/api/PubNubError.java +++ b/src/main/java/com/pubnub/api/PubNubError.java @@ -16,9 +16,9 @@ @Builder public class PubNubError { - public final int errorCode; - public final int errorCodeExtended; - public final JsonNode errorObject; + private final int errorCode; + private final int errorCodeExtended; + private final JsonNode errorObject; /** * includes a message from the thrown exception (if any.) */