Skip to content

[Build] Raise StreamPark compile and CI baseline to JDK 11#4413

Open
shangeyao wants to merge 4 commits into
apache:devfrom
shangeyao:build/jdk11-baseline
Open

[Build] Raise StreamPark compile and CI baseline to JDK 11#4413
shangeyao wants to merge 4 commits into
apache:devfrom
shangeyao:build/jdk11-baseline

Conversation

@shangeyao

Copy link
Copy Markdown
Contributor

Summary

  • Set project.build.jdk to 11 and Maven compiler --release 11
  • Update Scala -target:11 and Spotless Java 11 compliance
  • Switch official Docker image default to JDK 11
  • CI workflows (backend, unit-test, e2e, docker-push) use JDK 11 only
  • Align module compiler overrides (e2e, ES connectors, spark-cli template)
  • Add root POM surefire profile for --add-opens on JDK 9+ test runs

Test plan

  • ./mvnw clean install -Pshaded -DskipTests on JDK 17
  • CI backend + unit-test green on JDK 11 matrix

Merge order

3/3 — merge after #4411 and #4412. Part of JDK 11 migration (#4409, #4410).


AI Disclosure

  • Model: Claude (Cursor Agent)
  • Platform/Tool: Cursor
  • Human Oversight: partially reviewed
  • Prompt Summary: Split JDK 11 migration into reviewable PRs; build and CI baseline

Made with Cursor

Set Maven release 11, update Spotless compliance, switch Docker and CI
workflows to JDK 11, and align module compiler overrides.

Closes apache#4409 (part 3/3). Ref apache#4410.

Generated-by: Cursor
Co-authored-by: Cursor <cursoragent@cursor.com>
shangeyao and others added 3 commits July 1, 2026 11:13
Walk the class hierarchy to locate the ucp field on JDK 11+ app
classloaders, add JUnit coverage, and enable surefire add-opens on JDK 9+.

Closes apache#4409 (part 1/3). Ref apache#4410.

Generated-by: Cursor
Co-authored-by: Cursor <cursoragent@cursor.com>
Enable add-opens JVM opts, enforce JDK 11+ at startup, fix classpath layout,
add javax.annotation-api, and document Console vs job JDK requirements.

Closes apache#4409 (part 2/3). Ref apache#4410.

Generated-by: Cursor
Co-authored-by: Cursor <cursoragent@cursor.com>
Compile MavenWrapperHelper with --release 11 at runtime and stop
packaging prebuilt wrapper classes so project builds work in JDK 11
containers. Update basic E2E for Docker 29, local Chrome, Git SSL,
and Projects page flows verified on macOS.

Generated-by: Cursor
Co-authored-by: Cursor <cursoragent@cursor.com>
@sonarqubecloud

sonarqubecloud Bot commented Jul 1, 2026

Copy link
Copy Markdown

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant