Repository navigation
Mark Netty package imports as optional in OSGi manifest - #2214
Merged
Merged
Conversation
PR rabbitmq#2048 made Netty dependencies optional for Maven consumers. This change also marks Netty package imports as optional in the OSGi manifest, allowing the bundle to resolve without Netty when the Netty transport is not used.
Contributor
|
@cwlowe2007 Thanks! |
Contributor
|
@Mergifyio backport v5.x |
✅ Backports have been createdDetails
|
8 tasks
acogoluegnes
added a commit
that referenced
this pull request
Nov 30, 2026
Mark Netty package imports as optional in OSGi manifest (backport #2214)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR #2048 made Netty dependencies optional for Maven consumers. This change also marks Netty package imports as optional in the OSGi manifest, allowing the bundle to resolve without Netty when the Netty transport is not used.
Proposed Changes
Add io.netty.;resolution:=optional, to the bundle plugin’s Import-Package instructions.
This addresses #2047 for OSGi environments without changing Maven dependency resolution. Applications that do not use the Netty transport can use the client without installing unused Netty bundles.
Manifest comparison:
CURRENT-MANIFEST.TXT
UPDATED-MANIFEST.TXT
The only semantic difference is resolution:=optional on the 11 Netty package imports. All other manifest headers and import version ranges remain unchanged.
Types of Changes
Checklist
CONTRIBUTING.mddocumentFurther Comments
If this is a relatively large or complex change, kick off the discussion by
explaining why you chose the solution you did and what alternatives you
considered, etc.