-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CALCITE-5737] Support jdk21 and jdk22 #3793
Conversation
@@ -792,6 +808,9 @@ allprojects { | |||
inputs.property("java.vm.version", System.getProperty("java.vm.version")) | |||
options.encoding = "UTF-8" | |||
options.compilerArgs.add("-Xlint:deprecation") | |||
// JDK 1.8 is deprecated https://bugs.openjdk.org/browse/JDK-8173605 | |||
// and now it requires -Xlint:-options to mute warnings about its deprecation | |||
options.compilerArgs.add("-Xlint:-options") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approach similar to one done within openJDK openjdk/jdk#10135
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sure you've tested it all locally
50e29f5
to
784dfc6
Compare
yep, exactly, however the main test is ci since locally I have only one OS and on ci there are different |
I rebased the PR since gradle8 support was merged |
I will merge tomorrow if there is no objections |
Update dependencies asm from 7.2 to 9.6 byte-buddy from 1.9.3 to 1.14.15 forbiddenapis from 3.5.1 to 3.7 mockito from 2.23.4 to 3.12.4
Quality Gate passedIssues Measures |
Adds jdk21 and 22 to ci
The PR also adds deprecations to forbiddenAPI config for
URL
constructor which became deprecated since jdk20