The Bracket Java SDK is a Java library for interacting with the Bracket REST API.
To install the Bracket Java SDK, clone the git repo and run the Maven build:
~/test$ git clone [email protected]:brkt/brkt-sdk-java.git
Cloning into 'brkt-sdk-java'...
...
~/test$ cd brkt-sdk-java/
~/test/brkt-sdk-java (master)$ mvn install
...
[INFO] Building brkt-sdk-java 1.0-SNAPSHOT
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.924 s
[INFO] Finished at: 2015-06-18T17:27:46-07:00
[INFO] Final Memory: 30M/310M
[INFO] ------------------------------------------------------------------------
The Bracket Java SDK is compatible with Java 6 and up at runtime, however
building it requires JDK 8. If the Maven build fails with Javadoc generation
errors, install JDK 8 and set the JAVA_HOME
environment variable in
~/.mavenrc
:
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home
When the build succeeds, you can find the JAR files in the target
subdirectory. For more details and sample code, take a look at the
Javadoc.