Skip to content

[FLINK-38730][build] Bump jdk version from 8 to 11.#4187

Merged
leonardBang merged 3 commits into
apache:masterfrom
lvyanquan:FLINK-38730
Dec 26, 2025
Merged

[FLINK-38730][build] Bump jdk version from 8 to 11.#4187
leonardBang merged 3 commits into
apache:masterfrom
lvyanquan:FLINK-38730

Conversation

@lvyanquan
Copy link
Copy Markdown
Contributor

Bump jdk version from 8 to 11.
This will allow us to gradually start the compatibility work with Flink 2.x, Debezium 2.x, and Iceberg 1.10+.

@lvyanquan lvyanquan added this to the V3.6.0 milestone Dec 3, 2025
@github-actions github-actions Bot added the build label Dec 3, 2025
Comment thread pom.xml
</plugins>
</build>
</profile>
<profile>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As we're running tests against Java 17 in nightly builds, shall we create a java-17-target profile and activate it with [17,)?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Copy Markdown
Member

@yuxiqian yuxiqian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good except one minor comment.

Comment thread pom.xml Outdated
@yuxiqian
Copy link
Copy Markdown
Member

yuxiqian commented Dec 8, 2025

Tested this PR with Java 17 in yuxiqian#123, seems some cases are failing because we need to explicitly --add-opens for specific modules.

@lvyanquan
Copy link
Copy Markdown
Contributor Author

Tested this PR with Java 17 in yuxiqian#123, seems some cases are failing because we need to explicitly --add-opens for specific modules.

Done.
And test for jdk17 ran as expected in lvyanquan#22.

@lvyanquan
Copy link
Copy Markdown
Contributor Author

Hi @leonardBang, PTAL.

Copy link
Copy Markdown
Member

@yuxiqian yuxiqian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, thanks @lvyanquan for the nice work.

Comment thread pom.xml Outdated
<java>
<googleJavaFormat>
<version>1.7</version>
<version>1.10.0</version>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: It's ideal to follow Flink code format style (AOSP 1.24.0).
As that would result in changes in many files, we could do it later.

Copy link
Copy Markdown
Contributor Author

@lvyanquan lvyanquan Dec 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

@leonardBang leonardBang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, @lvyanquan could you keep two commits including (1) bump jdk11 and (2) support jdk17

@leonardBang leonardBang merged commit 1da0567 into apache:master Dec 26, 2025
87 of 91 checks passed
Mrart pushed a commit to Mrart/flink-cdc that referenced this pull request Mar 26, 2026
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.

3 participants