-
Notifications
You must be signed in to change notification settings - Fork 896
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
to
ad4e33c
Compare
Now Copr build fails because the Gradle build somehow only accepts Java 17:
|
@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! |
Fixes: #3591
All Submissions:
New Feature Submissions:
./gradlew styleCheck
pass ?Changes to Existing Features: