I'm trying to use a customer DGS scalar type defined in a dependency. This class is annotated with @DgsScalar(name = "Locale")
.
When I try to use it in a project with contains this dependent project in a pom dependency, I can see this class in IntelliJ, but when I use this custom scalar type in the file schema.graphqls, like this: scalar Locale
, then this error is reported when I start the spring container:
***************************
APPLICATION FAILED TO START
***************************
Description:
There are problems with the GraphQL Schema:
* There is no scalar implementation for the named 'Locale' scalar type
If I copy the same file from the dependent project to my project, then all works fine. If I check if the dependent project is there, I can see it using mvn dependency:tree
. As I test, I'm also able to instantiate the Locale scalar type class, so my project is able to access it.
Thanks for any help.