Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to SmallRye GraphQL 1.2.5 and MicroProfile GraphQL 1.1.0 #17845

Merged
merged 1 commit into from
Jun 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bom/application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<smallrye-health.version>3.0.2</smallrye-health.version>
<smallrye-metrics.version>3.0.1</smallrye-metrics.version>
<smallrye-open-api.version>2.1.5</smallrye-open-api.version>
<smallrye-graphql.version>1.2.4</smallrye-graphql.version>
<smallrye-graphql.version>1.2.5</smallrye-graphql.version>
<smallrye-opentracing.version>2.0.0</smallrye-opentracing.version>
<smallrye-fault-tolerance.version>5.1.0</smallrye-fault-tolerance.version>
<smallrye-jwt.version>3.2.0</smallrye-jwt.version>
Expand Down
2 changes: 1 addition & 1 deletion build-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<microprofile-opentracing-api.version>2.0</microprofile-opentracing-api.version>
<microprofile-context-propagation.version>1.0.1</microprofile-context-propagation.version>
<microprofile-jwt-api.version>1.2</microprofile-jwt-api.version>
<microprofile-graphql-api.version>1.0.3</microprofile-graphql-api.version>
<microprofile-graphql-api.version>1.1.0</microprofile-graphql-api.version>

<!-- Antlr is used by the PanacheQL parser-->
<antlr.version>4.7.2</antlr.version>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/main/asciidoc/smallrye-graphql-client.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ import static io.smallrye.graphql.client.core.Operation.operation;
// ....

@Inject
@NamedClient("star-wars-dynamic") // <1>
@GraphQLClient("star-wars-dynamic") // <1>
DynamicGraphQLClient dynamicClient;

@GET
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class SmallRyeGraphQLClientProcessor {

private static final DotName GRAPHQL_CLIENT_API = DotName
.createSimple("io.smallrye.graphql.client.typesafe.api.GraphQLClientApi");
private static final DotName NAMED_CLIENT = DotName.createSimple("io.smallrye.graphql.client.NamedClient");
private static final DotName GRAPHQL_CLIENT = DotName.createSimple("io.smallrye.graphql.client.GraphQLClient");
private static final String NAMED_DYNAMIC_CLIENTS = "io.smallrye.graphql.client.dynamic.cdi.NamedDynamicClients";

@BuildStep
Expand Down Expand Up @@ -59,7 +59,7 @@ void setupServiceProviders(BuildProducer<ServiceProviderBuildItem> services) {
void dynamicClientInjection(BuildProducer<AdditionalBeanBuildItem> additionalBeans,
BuildProducer<AutoInjectAnnotationBuildItem> autoInject) {
additionalBeans.produce(new AdditionalBeanBuildItem(NAMED_DYNAMIC_CLIENTS));
autoInject.produce(new AutoInjectAnnotationBuildItem(NAMED_CLIENT));
autoInject.produce(new AutoInjectAnnotationBuildItem(GRAPHQL_CLIENT));
}

@BuildStep
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import io.quarkus.smallrye.graphql.client.deployment.model.Person;
import io.quarkus.smallrye.graphql.client.deployment.model.TestingGraphQLApi;
import io.quarkus.test.QuarkusUnitTest;
import io.smallrye.graphql.client.NamedClient;
import io.smallrye.graphql.client.GraphQLClient;
import io.smallrye.graphql.client.core.Document;
import io.smallrye.graphql.client.core.Operation;
import io.smallrye.graphql.client.dynamic.api.DynamicGraphQLClient;
Expand All @@ -38,7 +38,7 @@ public class DynamicGraphQLClientInjectionTest {
.addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml"));

@Inject
@NamedClient("people")
@GraphQLClient("people")
phillip-kruger marked this conversation as resolved.
Show resolved Hide resolved
DynamicGraphQLClient client;

@Test
Expand Down

This file was deleted.