Maven and Gradle configuration

The client JARs are located in the JCenter Maven repository. You need to configure your build tool appropriately.

Configuring Gradle

In gradle.properties:

eventuateClientVersion=0.16.0.RELEASE
eventuateLocalVersion=0.11.0.RELEASE

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.

Eventuate SaaS

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.

Eventuate Local edition

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}"
}

Test support

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"
}

Configuring Maven

Specify the JCenter Repository:

<repositories>
    <repository>
        <id>jcenter</id>
        <url>http://jcenter.bintray.com</url>
    </repository>
</repositories>

Specify the client library version:

<properties>
    <eventuateClientVersion>0.16.0.RELEASE</eventuateClientVersion>
    <eventuateLocalVersion>0.11.0.RELEASE</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.

Eventuate SaaS

<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.

Eventuate Local edition

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>

Eventuate test support

Or, on the embedded test event store:

<dependency>
    <groupId>io.eventuate.client.java</groupId>
    <artifactId>eventuate-client-java-jdbc</artifactId>
    <version>${eventuateClientVersion}</version>
</dependency>

Stay in touch
Copyright © 2016 Eventuate, Inc • All rights reserved.