Skip to content

feat(build): add OSGi bundle support#23

Merged
marevol merged 1 commit intomasterfrom
feat/osgi-bundle-support
Mar 12, 2026
Merged

feat(build): add OSGi bundle support#23
marevol merged 1 commit intomasterfrom
feat/osgi-bundle-support

Conversation

@marevol
Copy link
Collaborator

@marevol marevol commented Mar 11, 2026

Summary

Add OSGi bundle metadata generation using the bnd-maven-plugin, enabling NekoHTML to be used as an OSGi bundle in modular environments.

Changes Made

  • Add bnd.bnd descriptor with bundle metadata, exported packages, and import declarations
  • Add bnd-maven-plugin (7.1.0) to pom.xml for automatic OSGi manifest generation
  • Update maven-jar-plugin to use the bnd-generated MANIFEST.MF instead of manual Automatic-Module-Name entry

Testing

  • Build with mvn clean package to verify manifest generation
  • Inspect META-INF/MANIFEST.MF in the output JAR for correct OSGi headers

Breaking Changes

  • None. The Automatic-Module-Name is preserved in bnd.bnd, maintaining JPMS compatibility.

Additional Notes

  • Zero new runtime dependencies — bnd-maven-plugin is build-time only

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@marevol marevol merged commit e6681d9 into master Mar 12, 2026
1 check passed
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.

1 participant