Skip to content

Commit

Permalink
Vertx client implementation requires yasson at runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
jmini committed Sep 25, 2024
1 parent b0eb3f2 commit 788b786
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
10 changes: 5 additions & 5 deletions client/implementation-vertx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@
<groupId>io.vertx</groupId>
<artifactId>vertx-web-client</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse</groupId>
<artifactId>yasson</artifactId>
<scope>runtime</scope>
</dependency>

<dependency>
<groupId>io.smallrye</groupId>
Expand All @@ -65,11 +70,6 @@
<artifactId>smallrye-graphql-client-model-builder</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse</groupId>
<artifactId>yasson</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
Expand Down
7 changes: 3 additions & 4 deletions docs/client-standalone.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ This is a full script runnable directly with [JBang](https://www.jbang.dev/) tha
uses a dynamic client for connecting to [countries.trevorblades.com](https://countries.trevorblades.com)
to obtain a list of countries from its database.

```
```java
///usr/bin/env jbang "$0" "$@" ; exit $?
//DEPS io.smallrye:smallrye-graphql-client-implementation-vertx:1.5.0
//DEPS io.smallrye:smallrye-graphql-client-implementation-vertx:RELEASE

import io.smallrye.graphql.client.dynamic.api.DynamicGraphQLClientBuilder;
import io.smallrye.graphql.client.dynamic.api.DynamicGraphQLClient;
import io.smallrye.graphql.client.Response;
import io.smallrye.graphql.client.vertx.dynamic.VertxDynamicGraphQLClientBuilder;
Expand Down Expand Up @@ -55,4 +54,4 @@ class Client {
}
```

Save this file as `client.java` and execute with `jbang client.java`.
Save this file as `Client.java` and execute with `jbang Client.java`.

0 comments on commit 788b786

Please sign in to comment.