https://github.com/vdaas/vald-ci-labs
https://github.com/vdaas/vald-ci-labs
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/vdaas/vald-ci-labs
- Owner: vdaas
- License: apache-2.0
- Created: 2020-02-12T03:21:39.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-09-12T06:58:19.000Z (8 months ago)
- Last Synced: 2024-09-12T16:01:59.355Z (8 months ago)
- Language: Java
- Size: 10.9 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vald-client-java
[](https://search.maven.org/search?q=g:%22org.vdaas.vald%22%20AND%20a:%22vald-client-java%22)
[](https://github.com/vdaas/vald/releases/latest)
[](https://docs.oracle.com/en/java/javase/17/)
[](https://kotlinlang.org/docs/home.html)A Java gRPC client library for [Vald](https://github.com/vdaas/vald).
## Usage
### Dependency
Add `vald-client-java` into your project dependency.
For Maven `pom.xml`,
```xml
org.vdaas.vald
vald-client-java
x.y.zio.grpc
grpc-api
x.y.zio.grpc
grpc-core
x.y.zio.grpc
grpc-stub
x.y.zio.grpc
grpc-protobuf
x.y.zio.grpc
grpc-netty-shaded
x.y.z```
Gradle `build.gradle`,
```groovy
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](./examples) directory.
To run,
$ ./gradlew build
$ cd examples
$ ./gradlew shadowJar
$ java -jar build/libs/vald-client-java-example-0.0.1-all.jar[](https://app.fossa.com/projects/custom%2B21465%2Fvald-client-java?ref=badge_large)