Skip to content

Support graphql-java 26 - #818

Open
pfyod wants to merge 1 commit into
graphql-java-kickstart:masterfrom
pfyod:graphql-java-26
Open

pfyod wants to merge 1 commit into
graphql-java-kickstart:masterfrom
pfyod:graphql-java-26

Conversation

@pfyod

@pfyod pfyod commented Oct 2, 2026

Copy link
Copy Markdown

graphql-java 26.0 removed graphql.schema.idl.DirectiveInfo, which made schema creation fail with NoClassDefFoundError.

  • bump graphql-java 25.0 -> 26.1
  • look up built-in directives via Directives.BUILT_IN_DIRECTIVES_MAP
  • give a bare @deprecated its default reason (like graphql-java's SchemaGenerator), so SchemaPrinter / federation _service.sdl can print it
  • pass the dictionary as named types (narrowed additionalTypes signature)
  • adapt to graphql-java 26 JSpecify nullability (no behaviour change)

Closes #815

graphql-java 26.0 removed graphql.schema.idl.DirectiveInfo, which made schema
creation fail with NoClassDefFoundError.

- bump graphql-java 25.0 -> 26.1
- look up built-in directives via Directives.BUILT_IN_DIRECTIVES_MAP
- give a bare @deprecated its default reason (like graphql-java's
  SchemaGenerator), so SchemaPrinter / federation _service.sdl can print it
- pass the dictionary as named types (narrowed additionalTypes signature)
- adapt to graphql-java 26 JSpecify nullability (no behaviour change)

Closes graphql-java-kickstart#815
@sonarqubecloud

sonarqubecloud Bot commented Oct 2, 2026

Copy link
Copy Markdown

@oryan-block

Copy link
Copy Markdown
Collaborator

@pfyod thanks for the contribution. I'll review this soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GraphQL Java 26.0 Support

2 participants