Skip to content

vdaas/vald-ci-labs

Repository files navigation

vald-client-java

Maven Central Vald version java kotlin

A Java gRPC client library for Vald.

Usage

Dependency

Add vald-client-java into your project dependency.

For Maven pom.xml,

<dependency>
    <groupId>org.vdaas.vald</groupId>
    <artifactId>vald-client-java</artifactId>
    <version>x.y.z</version>
</dependency>
<dependency>
  <groupId>io.grpc</groupId>
  <artifactId>grpc-api</artifactId>
  <version>x.y.z</version>
</dependency>
<dependency>
  <groupId>io.grpc</groupId>
  <artifactId>grpc-core</artifactId>
  <version>x.y.z</version>
</dependency>
<dependency>
  <groupId>io.grpc</groupId>
  <artifactId>grpc-stub</artifactId>
  <version>x.y.z</version>
</dependency>
<dependency>
  <groupId>io.grpc</groupId>
  <artifactId>grpc-protobuf</artifactId>
  <version>x.y.z</version>
</dependency>
<dependency>
  <groupId>io.grpc</groupId>
  <artifactId>grpc-netty-shaded</artifactId>
  <version>x.y.z</version>
</dependency>

Gradle build.gradle,

implementation 'org.vdaas.vald:vald-client-java:x.y.z'
implementation 'io.grpc:grpc-api:x.y.z'
implementation 'io.grpc:grpc-core:x.y.z'
implementation 'io.grpc:grpc-stub:x.y.z'
implementation 'io.grpc:grpc-protobuf:x.y.z'
implementation 'io.grpc:grpc-netty-shaded:x.y.z'

io.grpc:grpc-netty-shaded can be replaced by io.grpc:grpc-okhttp or io.grpc:grpc-netty.

Example

Please refer the examples directory.

To run,

$ ./gradlew build
$ cd examples
$ ./gradlew shadowJar
$ java -jar build/libs/vald-client-java-example-0.0.1-all.jar

FOSSA Status