Skip to content

GraphQL Schema not found when project is a gradle multi module #1123

@andimarek

Description

@andimarek

Hi,

not sure really this is a spring problem or a Gradle/IDEA problem, but when you have a Gradle multi module project and one of the modules is your Spring GraphQL app, then loading a GraphQL schema from the resources classpath fails (DefaultGraphQlSchemaCondition can't find it).

I created a minimal project to observe that here: https://github.com/andimarek/spring-graphql-multimodule-test

Just import in IDEA and run it. The result is that the GraphQL schema file resources/graphql/schema.graphqls is not found and hence so GraphQL setup/bootstrapping takes place.

Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: declinedA suggestion or change that we don't feel we should currently apply

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions