Skip to content

No scalar implementation when using a external JAR #909

@Mcdostone

Description

@Mcdostone

Hello, I have 2 gradle projects:

  • hello-graphql defining all the graphQL schemas,
  • hello-app, the spring boot application using hello-graphql

hello-graphql defines a custom scalar year. It is used in the Person graphQL definition.

Issue

I am facing issues when I want to use this library in my spring boot application:

***************************
APPLICATION FAILED TO START
***************************
Description:
There are problems with the GraphQL Schema:
        * There is no scalar implementation for the named  'Year' scalar type

It seems that Spring boot is not able to detect the Year scalar.
I use codegen since my graphQL definitions are in a external JAR.

To reproduce

git clone https://github.com/Mcdostone/hello-graphql
cd hello-graphql
./gradlew clean build
./gradlew :hello-app:bootRun

Thanks for your help

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions