The client JARs are located in Maven Central repository. You need to configure your build tool appropriately.
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:
dependencies {
compile "io.eventuate.client.java:eventuate-client-java-spring:$eventuateLocalVersion"
}
dependencies {
compile "io.eventuate.client.java:eventuate-client-java-micronaut:$eventuateLocalVersion"
}
There are two different implementations of Eventuate: production and testing.
To use the open-source, RDBMS/Kafka version then specify:
dependencies {
compile "io.eventuate.local.java:eventuate-local-java-spring-jdbc:${eventuateLocalVersion}"
}
dependencies {
compile "io.eventuate.local.java:eventuate-local-java-micronaut-jdbc:${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-spring-jdbc:$eventuateLocalVersion"
}
dependencies {
testCompile "io.eventuate.client.java:eventuate-client-java-micronaut-jdbc:$eventuateLocalVersion"
}
Specify the client library version:
<properties>
<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>${eventuateLocalVersion}</version>
</dependency>
<dependency>
<groupId>io.eventuate.client.java</groupId>
<artifactId>eventuate-client-java-micronaut</artifactId>
<version>${eventuateLocalVersion}</version>
</dependency>
There are two different implementations of Eventuate.
To use the open-source, RDBMS/Kafka version then specify:
<dependency>
<groupId>io.eventuate.local.java</groupId>
<artifactId>eventuate-local-java-spring-jdbc</artifactId>
<version>${eventuateLocalVersion}</version>
</dependency>
<dependency>
<groupId>io.eventuate.local.java</groupId>
<artifactId>eventuate-local-java-micronaut-jdbc</artifactId>
<version>${eventuateLocalVersion}</version>
</dependency>
Or, on the embedded test event store:
<dependency>
<groupId>io.eventuate.client.java</groupId>
<artifactId>eventuate-client-java-spring-jdbc</artifactId>
<version>${eventuateLocalVersion}</version>
</dependency>
<dependency>
<groupId>io.eventuate.client.java</groupId>
<artifactId>eventuate-client-java-micronaut-jdbc</artifactId>
<version>${eventuateLocalVersion}</version>
</dependency>