Installation

Maven Central

EventMesh SDK for Java is a collection of Java libraries to integrate EventMesh in a Java application. The SDK supports sending and receiving synchronous messages, asynchronous messages, and broadcast messages in TCP, HTTP, and gRPC protocols. The SDK implements EventMesh Message, CloudEvents, and OpenMessaging formats. The demo project is available in the eventmesh-example module.

Gradle

To install EventMesh SDK for Java with Gradle, declare org.apache.eventmesh:eventmesh-sdk-java as implementation in the dependencies block of the module’s build.gradle file.

  1. dependencies {
  2. implementation 'org.apache.eventmesh:eventmesh-sdk-java:1.4.0'
  3. }

Maven

To install EventMesh SDK for Java with Maven, declare org.apache.eventmesh:eventmesh-sdk-java as a dependency in the dependencies block of the project’s pom.xml file.

  1. <dependencies>
  2. <dependency>
  3. <groupId>org.apache.eventmesh</groupId>
  4. <artifactId>eventmesh-sdk-java</artifactId>
  5. <version>1.4.0</version>
  6. </dependency>
  7. </dependencies>