Skip to content

Support graphql-java 26 - #818

Merged
oryan-block merged 5 commits into
graphql-java-kickstart:masterfrom
pfyod:graphql-java-26
Oct 3, 2026
Merged

oryan-block merged 5 commits into
graphql-java-kickstart:masterfrom
pfyod:graphql-java-26

Conversation

@pfyod

@pfyod pfyod commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

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
@oryan-block

Copy link
Copy Markdown
Collaborator

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

pfyod and others added 4 commits October 3, 2026 08:36
Build the built-in directive map from the individual Directives constants
instead of Directives.BUILT_IN_DIRECTIVES_MAP, which only exists in
graphql-java 26, so the same jar works with both 25 and 26.

Also clarify where the default @deprecated reason comes from and add a
TODO to narrow SchemaObjects.dictionary in the next major version.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@sonarqubecloud

sonarqubecloud Bot commented Oct 3, 2026

Copy link
Copy Markdown

@oryan-block
oryan-block merged commit f5b5fcd into graphql-java-kickstart:master Oct 3, 2026
6 checks passed
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