Skip to content

Mark Netty package imports as optional in OSGi manifest - #2214

Merged
acogoluegnes merged 1 commit into
rabbitmq:mainfrom
cwlowe2007:main
Nov 30, 2026
Merged

acogoluegnes merged 1 commit into
rabbitmq:mainfrom
cwlowe2007:main

Conversation

@cwlowe2007

Copy link
Copy Markdown
Contributor

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.

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.
@acogoluegnes acogoluegnes changed the title Make new netty dependencies optional in OSGi Mark Netty package imports as optional in OSGi manifest Nov 30, 2026
@acogoluegnes
acogoluegnes merged commit 49016af into rabbitmq:main Nov 30, 2026
7 checks passed
@acogoluegnes

Copy link
Copy Markdown
Contributor

@cwlowe2007 Thanks!

@acogoluegnes

Copy link
Copy Markdown
Contributor

@Mergifyio backport v5.x

@mergify

mergify Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

backport v5.x

✅ Backports have been created

Details

acogoluegnes added a commit that referenced this pull request Nov 30, 2026
Mark Netty package imports as optional in OSGi manifest (backport #2214)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants