The information below is general information provided on using the Cogswell Java SDK. For code examples and API references, see the corresponding docs.
- For Cogswell Pub/Sub: Cogswell Pub/Sub Code Samples
- For Cogswell CEP: Cogswell CEP Code Samples
The Cogswell Java SDK can be imported into a project either using the .jar files provided, or by including the appropriate information in your build file.
Follow the instructions under Compile and Install the Source and include the
following information in your build.gradle
file. Make sure to choose Use default gradle wrapper (recommended)
when creating your Gradle project.
apply plugin: 'java'
sourceCompatibility = 1.8
repositories {
mavenLocal()
jcenter()
}
dependencies {
compile group: 'io.cogswell', name: 'cogs-java-client-sdk', version: '2.0.0'
}
Run the following command under the cogs-java-client-sdk
directory.
./gradlew install
gradlew.bat install
If you are only interested in building the .jar
file from the source,
then you can run the command below. The new .jar
file can be found
in the directory cogs-java-client-sdk/build/libs
.
./gradlew build
gradlew.bat build