Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

graphql-spring-boot-starter webflux not pulling in all dependencies #393

Closed
MOES-Media opened this issue Apr 14, 2020 · 1 comment
Closed
Milestone

Comments

@MOES-Media
Copy link

I'm setting up a poc to refac our rest gateways into graphql ones, one of the use-cases is that I need to extract the context out of a http-header, I've found numerous tutorials on how to do that and they all referenced to get the context and from that I could get the webServerExchange, every time I tried to run the code it failed with a classCastException that GraphQLContext could not be cast to GraphQLSpringServerWebExchangeContext. I noticed I couldn't import it since the dependencies of 7.0.1 to graphql-kickstart-java and graphql-kickstart-spring-webflux where changed to runtime dependencies, so I had to add the manually into my build.gradle file.
Is this a bug or is this by design, if this is by design can you maybe add it to the documentation?

@oliemansm oliemansm added this to the 7.1.0 milestone Apr 15, 2020
@oliemansm
Copy link
Member

In the Gradle dependency refactor these packages were marked as implementation instead of api. You can try the fix using snapshot version 7.1.0-SNAPSHOT. See README for the repo configuration.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants