Maven and Gradle configuration

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

Latest library version

Download

Configuring Gradle

In gradle.properties:

eventuateLocalVersion=LATEST_VERSION

In build.gradle, specify the JCenter maven repository:

repositories {
    mavenCentral()
}

In build.gradle, specify a dependency on the Java Client library, which provides the API:

Spring

dependencies {
  compile "io.eventuate.client.java:eventuate-client-java-spring:$eventuateLocalVersion"
}

Micronaut

dependencies {
  compile "io.eventuate.client.java:eventuate-client-java-micronaut:$eventuateLocalVersion"
}

There are two different implementations of Eventuate: production and testing.

Eventuate Local edition

To use the open-source, RDBMS/Kafka version then specify:

Spring

dependencies {
  compile "io.eventuate.local.java:eventuate-local-java-spring-jdbc:${eventuateLocalVersion}"
}

Micronaut

dependencies {
  compile "io.eventuate.local.java:eventuate-local-java-micronaut-jdbc:${eventuateLocalVersion}"
}

Test support

If you are writing integration tests that you should use the embedded JDBC-based test version:

Spring

dependencies {
  testCompile "io.eventuate.client.java:eventuate-client-java-spring-jdbc:$eventuateLocalVersion"
}

Micronaut

dependencies {
  testCompile "io.eventuate.client.java:eventuate-client-java-micronaut-jdbc:$eventuateLocalVersion"
}

Configuring Maven

Specify the client library version:

<properties>
    <eventuateLocalVersion>LATEST_VERSION</eventuateLocalVersion>
</properties>

Specify a dependency on the Java Client library, which provides the API:

Spring

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

Micronaut

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

There are two different implementations of Eventuate.

Eventuate Local

To use the open-source, RDBMS/Kafka version then specify:

Spring

<dependency>
    <groupId>io.eventuate.local.java</groupId>
    <artifactId>eventuate-local-java-spring-jdbc</artifactId>
    <version>${eventuateLocalVersion}</version>
</dependency>

Micronaut

<dependency>
    <groupId>io.eventuate.local.java</groupId>
    <artifactId>eventuate-local-java-micronaut-jdbc</artifactId>
    <version>${eventuateLocalVersion}</version>
</dependency>

Eventuate test support

Or, on the embedded test event store:

Spring

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

Micronaut

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

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