Skip to content

Upgrade to Spring Boot 4.2, graphql-java 26.+, spring-graphql 2.1 - #2352

Open
jiholee17 wants to merge 11 commits into
masterfrom
feature/spring-boot-4.2
Open

jiholee17 wants to merge 11 commits into
masterfrom
feature/spring-boot-4.2

Conversation

@jiholee17

@jiholee17 jiholee17 commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Closes #2350

This upgrade targets Spring Boot 4.2.0, GraphQL Java 26.1, and Spring GraphQL 2.1.0.

Summary

Update DGS Framework's dependency platform to the Spring Boot 4.2, GraphQL Java 26, and Spring GraphQL 2.1 lines. This remains a compatibility review for milestone dependencies.

Changes in this PR

  • Update Spring Boot from 4.0.0 to 4.2.0. The refreshed locks resolve Spring GraphQL 2.1.0.
  • Update the DGS platform constraints for GraphQL Java 25.0 → 26.1, Apollo Federation JVM support 5.3.0 → 7.0.0, and GraphQL Java Extended Validation 22.0 → 24.0.
  • Refresh dependency locks across affected modules.
  • Adjust Kotlin tests for nullable GraphQL results and Spring bean lookups under the updated dependencies.
  • Assert the Federation JVM 7 entity error paths as ["/_entities", 0] and ["/_entities", 1].

The production nullability changes, instrumentation updates, and Micrometer fallback tags were merged separately in #2356 and are already on master; this PR builds on them.

Verification and compatibility

  • CI passed for this head commit (62c373d9): Gradle check, local publication, and Java/Kotlin example builds.
  • Updated the federation entity error-path test for Federation JVM 7.
  • Retain GraphQL Java 26's default query limits (maximum depth 100, maximum field count 100,000), consistent with the current internal query-limit decision.
  • Add coverage for MaxQueryDepthExceeded and MaxQueryFieldsExceeded.
  • Audit schemas against GraphQL Java 26's stricter validation rules.
  • Add regression coverage for built-in directive presence and ordering.
  • Add explicit coverage for Federation v2.13–v2.15 features.
  • Document downstream Kotlin migration requirements for custom instrumentation and direct GraphQL Java API usage.
  • Assess and document the client-visible impact of federation entity error paths changing to forms such as ["/_entities", 0].
  • Repeat the compatibility review as new Spring Boot milestones, release candidates, and final releases become available.

…0-M1

# Conflicts:
#	graphql-dgs-spring-boot-micrometer/src/main/kotlin/com/netflix/graphql/dgs/metrics/micrometer/DgsGraphQLMetricsInstrumentation.kt
@iparadiso iparadiso changed the title [WIP] Upgrade to Spring Boot 4.2, graphql-java 26.+, spring-graphql 2.1 Upgrade to Spring Boot 4.2, graphql-java 26.+, spring-graphql 2.1 Nov 20, 2026

This branch was successfully deployed

1 active deployment
Publish — 09b8e8f6 Deployed Nov 21, 2026 by iparadiso via build #272
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.

feature: Upgrade graphql-java to 26.+

2 participants