-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Lower build requirement from Java 14+ to Java 11+ #940
Lower build requirement from Java 14+ to Java 11+ #940
Conversation
Avoid use of -Werror -Xlint:all, which may change significantly across java releases (new warnings could be added). Instead, just list the warnings individually. Workaround JDK 11 compiler bug (JDK-8209058) that only impacts test fixture code in the build itself. Signed-off-by: Robert Muir <[email protected]>
The java version checker triggers some default warnings because it targets java7: ``` > Task :distribution:tools:java-version-checker:compileJava FAILED warning: [options] source value 7 is obsolete and will be removed in a future release warning: [options] target value 7 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. error: warnings found and -Werror specified ``` Suppress this warning explicitly for this module. Signed-off-by: Robert Muir <[email protected]>
Signed-off-by: Robert Muir <[email protected]>
❌ DCO Check Failed c0680575c1d4d9daa3fcf254b8596aee10d489e3 |
✅ Gradle Wrapper Validation success c0680575c1d4d9daa3fcf254b8596aee10d489e3 |
…Search into rmuir-java_11_build_support Signed-off-by: dblock <[email protected]>
c068057
to
39b7d6c
Compare
✅ Gradle Wrapper Validation success 39b7d6c |
✅ DCO Check Passed 39b7d6c |
✅ Gradle Precommit success c0680575c1d4d9daa3fcf254b8596aee10d489e3 |
✅ Gradle Precommit success 39b7d6c |
start gradle check |
@dblock this PR didn't make it to |
Originally we didn’t want to make that change for 1.1. I think we should try to get everything working with Java 11 or 17 for the entire distribution on main, and then decide if we release it in 1.2 and backport this and other commits. |
Got it, thank you, the |
At what point does it do that? I don't think I understand all the intricacies ;) |
Yeah, so what is happening (my understanding but I am 99% it works this way), when we run |
This PR didn't make it into 1.2. With CI now updated to use jdk11 this should be backported to 1.x |
…#940) * Lower build requirement from Java 14+ to Java 11+ Avoid use of -Werror -Xlint:all, which may change significantly across java releases (new warnings could be added). Instead, just list the warnings individually. Workaround JDK 11 compiler bug (JDK-8209058) that only impacts test fixture code in the build itself. Signed-off-by: Robert Muir <[email protected]> * Disable warning around -source 7 -release 7 for java version checker The java version checker triggers some default warnings because it targets java7: ``` > Task :distribution:tools:java-version-checker:compileJava FAILED warning: [options] source value 7 is obsolete and will be removed in a future release warning: [options] target value 7 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. error: warnings found and -Werror specified ``` Suppress this warning explicitly for this module. Signed-off-by: Robert Muir <[email protected]> * more java14 -> java11 cleanup Signed-off-by: Robert Muir <[email protected]> Co-authored-by: Robert Muir <[email protected]> Signed-off-by: Marc Handalian <[email protected]>
* Lower build requirement from Java 14+ to Java 11+ Avoid use of -Werror -Xlint:all, which may change significantly across java releases (new warnings could be added). Instead, just list the warnings individually. Workaround JDK 11 compiler bug (JDK-8209058) that only impacts test fixture code in the build itself. Signed-off-by: Robert Muir <[email protected]> * Disable warning around -source 7 -release 7 for java version checker The java version checker triggers some default warnings because it targets java7: ``` > Task :distribution:tools:java-version-checker:compileJava FAILED warning: [options] source value 7 is obsolete and will be removed in a future release warning: [options] target value 7 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. error: warnings found and -Werror specified ``` Suppress this warning explicitly for this module. Signed-off-by: Robert Muir <[email protected]> * more java14 -> java11 cleanup Signed-off-by: Robert Muir <[email protected]> Co-authored-by: Robert Muir <[email protected]> Signed-off-by: Marc Handalian <[email protected]> Co-authored-by: Daniel Doubrovkine (dB.) <[email protected]> Co-authored-by: Robert Muir <[email protected]>
…roject#940) Signed-off-by: Andriy Redko <[email protected]>
Description
This is a rebased version of #636 on which I made a mess.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.