-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[improve][build] Require Java 17 or Java 21 for building Pulsar #22875
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #22875 +/- ##
============================================
- Coverage 73.57% 73.26% -0.32%
- Complexity 32624 32680 +56
============================================
Files 1877 1889 +12
Lines 139502 141871 +2369
Branches 15299 15565 +266
============================================
+ Hits 102638 103941 +1303
- Misses 28908 29898 +990
- Partials 7956 8032 +76
Flags with carried forward coverage won't be shown. Click here to find out more. |
(cherry picked from commit e31dbdd)
In branch-3.0, the rule is to require Java 17 exactly (ad935a0) since certain libraries in branch-3.0 don't support compiling with Java 21. Compiling with Java 21 is supported and preferred since branch-3.3 |
Fixes #22874
Motivation
Building Pulsar is supported with either Java 17 or Java 21. This should be enforced so that there's a clear error message when the build is run on an unsupported Java version.
Modifications
Change the version range for enforcer plugin to allow all Java 17 versions and all Java 21 versions.
Documentation
doc
doc-required
doc-not-needed
doc-complete