- Notifications
You must be signed in to change notification settings - Fork904
Copr: Use Java 21 as the build dependency#3607
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
As this is not a code change, i did not execute any build locally. |
is that why it is failing ? |
I am 99 % sure, though I am not the person who set Copr builds up. It is consistent with the logs, |
It does not seem to fix the failure |
Yeah, I noticed that. My only guess is that the Copr build uses these settings from the master branch, not from PRs.
that is exactly the content of the file that I am changing in this PR and that is what fails during the Copr build:
|
1db1721
toad4e33c
CompareNow Copr build fails because the Gradle build somehow only accepts Java 17:
|
vlsi commentedApr 28, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@mkoncek , we do use Java 17 by default, however, there's an option to adjust it: It might be time to go for Java 21 by default for the build though. |
This is funny and not so funny at the same time:
@mkoncek , could you add the following as well? --- a/build-logic/jvm/src/main/kotlin/build-logic.java.gradle.kts+++ b/build-logic/jvm/src/main/kotlin/build-logic.java.gradle.kts@@ -62,6 +62,11 @@ tasks.configureEach<JavaCompile> { } } )+ if (buildParameters.jdkBuildVersion >= 21 && buildParameters.targetJavaVersion < 11) {+ // We know target Java 8 is deprecated with Java 21, so silence the warning+ // otherwise the build fails due to -Werror below+ compilerArgs.add("-Xlint:-options")+ } if (!buildParameters.enableCheckerframework) { compilerArgs.add("-Xlint:deprecation") } else { |
Sure. |
Wow. So much fun. It finally worked! |
475812b
intopgjdbc:masterUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Fixes:#3591
All Submissions:
New Feature Submissions:
./gradlew styleCheck
pass ?Changes to Existing Features: