Skip to content

Mark Netty package imports as optional in OSGi manifest (backport #2214) - #2215

Merged
acogoluegnes merged 1 commit into
v5.xfrom
mergify/bp/v5.x/pr-2214
Nov 30, 2026
Merged

acogoluegnes merged 1 commit into
v5.xfrom
mergify/bp/v5.x/pr-2214

Conversation

@mergify

@mergify mergify Bot commented Nov 30, 2026

Copy link
Copy Markdown

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:

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

  • [X ] Bugfix (non-breaking change which fixes issue Possibility to exclude Netty dependencies #2047)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation (correction or otherwise)
  • Cosmetics (whitespace, appearance)

Checklist

  • [X ] I have read the CONTRIBUTING.md document
  • I have signed the CA (see https://cla.pivotal.io/sign/rabbitmq)
  • [ X] All tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged and published in related repositories

Further 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.


This is an automatic backport of pull request #2214 done by [Mergify](https://mergify.com).

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.

(cherry picked from commit df8915a)
@acogoluegnes acogoluegnes added this to the 5.38.1 milestone Nov 30, 2026
@acogoluegnes
acogoluegnes merged commit 14a6c38 into v5.x Nov 30, 2026
4 checks passed
@acogoluegnes
acogoluegnes deleted the mergify/bp/v5.x/pr-2214 branch November 30, 2026 16:37
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.

2 participants