-
-
Notifications
You must be signed in to change notification settings - Fork 303
Add optional imports for Guava / Error Prone #7024
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
Add optional imports for Guava / Error Prone #7024
Conversation
628703d to
02d083d
Compare
02d083d to
296e0c2
Compare
|
@laeubi since you were also part of eclipse-platform/eclipse.platform.releng.aggregator#3579 Are you ok with the changes? |
296e0c2 to
aa72f64
Compare
aa72f64 to
dec9cc3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR reduces dependency pain for consumers of bnd by making certain dependencies private-package and making JUnit Platform imports optional.
- Converts Guava/Error Prone/jspecify from Import-Package to private-package in org.bndtools.templating
- Makes org.junit.platform imports optional in biz.aQute.tester.junit-platform to support consumers using JUnit >= 1.13
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| org.bndtools.templating/bnd.bnd | Adds com.google.errorprone.annotations and com.google.guava.failureaccess as compile dependencies and includes them in -conditionalpackage to make them private-package instead of Import-Package |
| biz.aQute.tester.junit-platform/bnd.bnd | Adds resolution:=optional to org.junit.platform imports to reduce consumer pain when using JUnit versions >= 1.13 |
merks
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That looks like it will be better and is analogous to other dependencies that haven't been causing problems...
dec9cc3 to
f5db143
Compare
Eliminated org.jspecify.jspecify and com.google.errorprone.annotations from the build and import configurations as they are no longer required. Updated Import-Package to explicitly exclude these packages. Signed-off-by: Christoph Rueger <chrisrueger@gmail.com> make errorprone / guava.failureaccess private Remove packages from Import-Package for com.google.common.util.concurrent.internal and com.google.errorprone.annotations. Signed-off-by: Christoph Rueger <chrisrueger@gmail.com> make org.junit.platform resolution:=optional, to avoid problems for consumers of bnd (like Eclipse who are on higher JUnit version eclipse-platform/eclipse.platform.releng.aggregator#3579) Signed-off-by: Christoph Rueger <chrisrueger@gmail.com>
f5db143 to
eeb5bcc
Compare
|
I removed changes for So this PR here is mainly about |
|
@merks |
|
Looking at the MANIFEST.MF content, everything looks sensible and is structured with sensible version ranges. Thanks!! |
Closes #7022
Guava
org.jspecify.jspecifyandcom.google.errorprone.annotationsHopefully makes life easier for eclipse-platform/eclipse.platform.releng.aggregator#3579 (comment)
Full MANIFEST.MF (Print view from JAR viewer):