From 788b786b84d00eaf6e2c0db5207628c01c0a66b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Bresson?= Date: Tue, 24 Sep 2024 14:32:49 +0200 Subject: [PATCH] Vertx client implementation requires yasson at runtime --- client/implementation-vertx/pom.xml | 10 +++++----- docs/client-standalone.md | 7 +++---- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/client/implementation-vertx/pom.xml b/client/implementation-vertx/pom.xml index 990b526ce..73dbd7862 100644 --- a/client/implementation-vertx/pom.xml +++ b/client/implementation-vertx/pom.xml @@ -49,6 +49,11 @@ io.vertx vertx-web-client + + org.eclipse + yasson + runtime + io.smallrye @@ -65,11 +70,6 @@ smallrye-graphql-client-model-builder test - - org.eclipse - yasson - test - diff --git a/docs/client-standalone.md b/docs/client-standalone.md index 3bc39a1f0..2bf39d54c 100644 --- a/docs/client-standalone.md +++ b/docs/client-standalone.md @@ -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; @@ -55,4 +54,4 @@ class Client { } ``` -Save this file as `client.java` and execute with `jbang client.java`. \ No newline at end of file +Save this file as `Client.java` and execute with `jbang Client.java`.