From 50471ff9a21e683db7b63f6f0b60322e48107e03 Mon Sep 17 00:00:00 2001 From: David Parker Date: Fri, 8 May 2020 12:34:17 +0100 Subject: [PATCH] Updates for 0.4.1 release (#190) * Paho 1.2.4 * Add CONTRIBUTING.md * Clear out some old test resources left behind from previous implementation * Rebuild oshi sample using 0.4.1 SDK * Update ref to latest version in README * Update Dockerfile --- .settings/org.eclipse.core.resources.prefs | 1 - CONTRIBUTING.md | 42 ++++++++++++++++++++++ README.md | 2 +- pom.xml | 4 +-- samples/oshi/Dockerfile | 2 +- samples/oshi/README.md | 4 +-- samples/oshi/pom.xml | 4 +-- src/test/resources/envSensor.json | 15 -------- src/test/resources/tempEventSchema.json | 15 -------- 9 files changed, 50 insertions(+), 39 deletions(-) create mode 100644 CONTRIBUTING.md delete mode 100644 src/test/resources/envSensor.json delete mode 100644 src/test/resources/tempEventSchema.json diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs index 3a78733f..f460465a 100644 --- a/.settings/org.eclipse.core.resources.prefs +++ b/.settings/org.eclipse.core.resources.prefs @@ -3,6 +3,5 @@ encoding//src/main/java=UTF-8 encoding//src/main/resources=UTF-8 encoding//src/test=UTF-8 encoding//src/test/java=UTF-8 -encoding//src/test/resources=UTF-8 encoding/=UTF-8 encoding/src=UTF-8 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..21c02735 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,42 @@ +# Contributing to Java for IBM Watson IoT Platform + +## Running the Tests +``` +set JAVA_HOME=/path/to/java/sdk +set MAVEN_HOME=/path/to/maven +set WIOTP_API_KEY=a-xxxxx-xxxxxxxxxx +set WIOTP_API_TOKEN=xxxxxxxxxxxxxxxxxx +set WIOTP_IDENTITY_ORGID=xxxxx +set WIOTP_IDENTITY_TYPEID=test +set WIOTP_IDENTITY_DEVICEID=000001 +set WIOTP_AUTH_TOKEN=passw0rd +``` + +Test results are automatically submitted to Coveralls. Ensure that new commits don't lower the code coverage %: https://coveralls.io/github/ibm-watson-iot/iot-java + + +## Deploying to Maven + +We live here: https://mvnrepository.com/artifact/com.ibm.wiotp + +``` +mvn versions:set -DnewVersion=0.1.0 +mvn clean package -Dmaven.test.skip=true +mvn deploy -P sign-artifacts +``` + +Go to https://oss.sonatype.org/#stagingRepositories +- Close the staging repo after verifying content +- Promote the repo to release after it's closed + +## Useful links +- Summary: https://central.sonatype.org/pages/ossrh-guide.html +- Maven overview: https://central.sonatype.org/pages/apache-maven.html +- Requirements for release in Maven Central: https://central.sonatype.org/pages/requirements.html +- Setting up PGP: https://central.sonatype.org/pages/working-with-pgp-signatures.html +- Releasing the deployment: https://central.sonatype.org/pages/releasing-the-deployment.html +- Check released artifacts: https://search.maven.org/search?q=com.ibm.wiotp (Sync to Maven Central occurs roughly every two hours) +- Sonatype staging: https://oss.sonatype.org/content/groups/staging/com/ibm/wiotp/ +- Sonatype release: https://oss.sonatype.org/content/groups/public/com/ibm/wiotp/ +- Snapshots: https://oss.sonatype.org/content/repositories/snapshots/com/ibm/wiotp/ +- Releases: https://repo1.maven.org/maven2/com/ibm/wiotp diff --git a/README.md b/README.md index 616fb4eb..fc1e58ce 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Add a dependency on `com.ibm.wiotp.sdk` to your project's `pom.xml`: com.ibm.wiotp com.ibm.wiotp.sdk - 0.3.0 + 0.4.1 ``` diff --git a/pom.xml b/pom.xml index 2257924e..cf717fda 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.ibm.wiotp com.ibm.wiotp.sdk - 0.4.0 + 0.4.1 jar