This repository has been archived by the owner on Jul 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
- Loading branch information
Showing
9 changed files
with
50 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
FROM openjdk:8u212-jdk-alpine3.9 | ||
|
||
ADD target/com.ibm.wiotp.samples.oshi-1.0.3-jar-with-dependencies.jar /opt/ibm/iotoshi/ | ||
ADD target/com.ibm.wiotp.samples.oshi-1.0.4-jar-with-dependencies.jar /opt/ibm/iotoshi/ | ||
|
||
ENTRYPOINT ["java", "-jar", "/opt/ibm/iotoshi/com.ibm.wiotp.samples.oshi-1.0.3-jar-with-dependencies.jar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.