The client JARs are located in the JCenter Maven repository. You need to configure your build tool appropriately.
In gradle.properties
:
eventuateClientVersion=LATEST_VERSION
eventuateLocalVersion=LATEST_VERSION
In build.gradle
, specify the JCenter maven repository:
repositories {
mavenCentral()
jcenter()
}
In build.gradle
, specify a dependency on the Java Client library, which provides the API:
dependencies {
compile "io.eventuate.client.java:eventuate-client-java-spring:$eventuateClientVersion"
}
There are three different implementations of Eventuate.
If you want to use the real event store then add this dependency:
dependencies {
compile "io.eventuate.client.java:eventuate-client-java-http-stomp-spring:$eventuateClientVersion"
}
Note: You will need to signup for Eventuate and get credentials.
To use the open-source, RDBMS/Kafka version then specify:
dependencies {
compile "io.eventuate.local.java:eventuate-local-java-jdbc:${eventuateLocalVersion}"
compile "io.eventuate.local.java:eventuate-local-java-embedded-cdc-autoconfigure:${eventuateLocalVersion}"
}
If you are writing integration tests that you should use the embedded JDBC-based test version:
dependencies {
testCompile "io.eventuate.client.java:eventuate-client-java-jdbc:$eventuateClientVersion"
}
Specify the JCenter Repository:
<repositories>
<repository>
<id>jcenter</id>
<url>http://jcenter.bintray.com</url>
</repository>
</repositories>
Specify the client library version:
<properties>
<eventuateClientVersion>LATEST_VERSION</eventuateClientVersion>
<eventuateLocalVersion>LATEST_VERSION</eventuateLocalVersion>
</properties>
Specify a dependency on the Java Client library, which provides the API:
<dependency>
<groupId>io.eventuate.client.java</groupId>
<artifactId>eventuate-client-java-spring</artifactId>
<version>${eventuateClientVersion}</version>
</dependency>
There are three different implementations of Eventuate.
<dependency>
<groupId>io.eventuate.client.java</groupId>
<artifactId>eventuate-client-java-http-stomp-spring</artifactId>
<version>${eventuateClientVersion}</version>
</dependency>
Note: You will need to signup for Eventuate and get credentials.
To use the open-source, RDBMS/Kafka version then specify:
<dependency>
<groupId>io.eventuate.local.java</groupId>
<artifactId>eventuate-local-java-jdbc</artifactId>
<version>${eventuateLocalVersion}</version>
</dependency>
<dependency>
<groupId>io.eventuate.local.java</groupId>
<artifactId>eventuate-local-java-embedded-cdc-autoconfigure</artifactId>
<version>${eventuateLocalVersion}</version>
</dependency>
Or, on the embedded test event store:
<dependency>
<groupId>io.eventuate.client.java</groupId>
<artifactId>eventuate-client-java-jdbc</artifactId>
<version>${eventuateClientVersion}</version>
</dependency>