Skip to content

Raise the minimum supported Java version to 17 - #4521

Merged
andimarek merged 2 commits into
masterfrom
codex/java17-minimum-runtime
Nov 1, 2026
Merged

andimarek merged 2 commits into
masterfrom
codex/java17-minimum-runtime

Conversation

@andimarek

@andimarek andimarek commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

Raises the minimum runtime from Java 11 to Java 17 while retaining the JDK 25 build toolchain. Applications running on Java 11 must upgrade their JVM to use this version.

  • Targets Java 17 in Java, Groovy, Kotlin, and the shaded-JAR consumer compilation check. The generated JAR declares JavaSE 17 in its OSGi metadata.
  • Removes the Java 11 Gradle tasks, CI matrix entries, report rows, and test baseline. Keeps Java 17/21/25 testing and makes the baseline updater retain only supported versions.
  • Documents the runtime/build requirements in both READMEs and AGENTS.md.
  • Removes only the Java 11-only class-loader test from LambdaFetchingSupportTest.groovy and its unused helper/imports. Preserves all eight tests that run on supported JVMs.
  • Makes the existing late-cancellation regression test deterministic by cancelling after nested field values are gathered. This covers the cancellation branch reliably without lowering the coverage baseline.

Validation: full tests and the reactive-stream TCK on Java 17/21/25, stress tests, artifact checks, Javadoc, and the per-class coverage gate all passed in CI. The rebuilt JAR contains Java 17 GraphQL bytecode (class version 61) and declares JavaSE 17 in its OSGi manifest.

@andimarek
andimarek force-pushed the codex/java17-minimum-runtime branch from 55f7602 to 1d17a1c Compare November 1, 2026 05:32
@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Test Report

Test Results

Java Version Total Passed Failed Errors Skipped
Java 11 - - - - -
Java 17 6177 (-1 🔴) 6121 (±0) 0 (±0) 0 (±0) 56 (-1)
Java 21 6177 (-1 🔴) 6121 (±0) 0 (±0) 0 (±0) 56 (-1)
Java 25 6177 (-1 🔴) 6121 (±0) 0 (±0) 0 (±0) 56 (-1)
jcstress 32 (±0) 32 (±0) 0 (±0) 0 (±0) 0 (±0)
Total 18563 (-3 🔴) 18395 (±0) 0 (±0) 0 (±0) 168 (-3)

Code Coverage (Java 25)

Metric Covered Missed Coverage vs Master
Lines 30303 3081 90.8% ±0.0%
Branches 8930 1506 85.6% ±0.0%
Methods 8093 1188 87.2% ±0.0%

No per-class coverage changes detected.

Full HTML report: build artifact jacoco-html-report

Updated: 2026-11-01 05:54:05 UTC

@andimarek
andimarek merged commit c1d25ff into master Nov 1, 2026
10 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.

1 participant