Skip to content

How to generate federation v2 compatible schemas via gradle in 6.x ? #1642

@roookeee

Description

@roookeee

I am getting the following error when using federation v2 annotations during my gradle build:

Execution failed for task ':graphqlGenerateSDL'.
> There was a failure while executing work items
   > A failure occurred while executing com.expediagroup.graphql.plugin.gradle.actions.GenerateSDLAction
      > Attempting to use Federation v2 shareable directive while generating Federation v1 compatible schema

I had no luck finding a property to set the opt in flag for the gradle plugin action. How do I allow the Gradle action to generate a federation v2 schema? I checked all actions and think its an oversight as its settable e.g. in the Spring server in 6.x.

I know the default will change in 7.x, but that version is still in alpha. Having the ability to override the opt in for the gradle task would be an improvement regardless.

Metadata

Metadata

Assignees

No one assigned

    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