Skip to content
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

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

lhotari
Copy link
Member

@lhotari lhotari commented Jun 7, 2024

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

@lhotari lhotari self-assigned this Jun 7, 2024
@lhotari lhotari requested review from merlimat and heesung-sn June 7, 2024 15:57
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Jun 7, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.26%. Comparing base (bbc6224) to head (794be98).
Report is 361 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             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     
Flag Coverage Δ
inttests 27.45% <ø> (+2.87%) ⬆️
systests 24.75% <ø> (+0.43%) ⬆️
unittests 72.29% <ø> (-0.56%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 389 files with indirect coverage changes

@lhotari lhotari merged commit e31dbdd into apache:master Jun 7, 2024
51 of 52 checks passed
lhotari added a commit that referenced this pull request Oct 4, 2024
@lhotari
Copy link
Member Author

lhotari commented Oct 4, 2024

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

@lhotari lhotari added this to the 4.0.0 milestone Oct 14, 2024
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Oct 15, 2024
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] maven build fails with Java 22
3 participants