Skip to content

Add full JPMS support - #261

Merged
xjusko merged 3 commits into
shrinkwrap:mainfrom
xjusko:jpms-full-support
Oct 6, 2026
Merged

xjusko merged 3 commits into
shrinkwrap:mainfrom
xjusko:jpms-full-support

Conversation

@xjusko

@xjusko xjusko commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Adds full JPMS support.

  • Fixes split packages between api and impl-base by moving internal utilities into org.jboss.shrinkwrap.api.internal (qualified-exported to impl-base only).
  • Adds module-info.java to api, spi, and impl-base with proper requires/exports/provides directives.
  • Adds a jpms-tests integration module that runs on the module path as a real consumer, verifying both runtime service loading and the descriptor shape — guarding against silent module-path regressions the normal build can't see.

Closes #127

@rhusar rhusar changed the title Jpms full support Add full JPMS support Sep 1, 2026

@rhusar rhusar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Always link the issue from commit message.

Comment thread jpms-tests/pom.xml Resolved
@xjusko

xjusko commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

I updated the PR addressing the comments in the review and also restored the previously deleted public API, setting it as Deprecated.

@jamezp jamezp left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor comment, but IMO it shouldn't block the PR.

Comment on lines +23 to +39
exports org.jboss.shrinkwrap.impl.base;
exports org.jboss.shrinkwrap.impl.base.asset;
exports org.jboss.shrinkwrap.impl.base.container;
exports org.jboss.shrinkwrap.impl.base.exporter;
exports org.jboss.shrinkwrap.impl.base.exporter.tar;
exports org.jboss.shrinkwrap.impl.base.exporter.zip;
exports org.jboss.shrinkwrap.impl.base.filter;
exports org.jboss.shrinkwrap.impl.base.importer;
exports org.jboss.shrinkwrap.impl.base.importer.tar;
exports org.jboss.shrinkwrap.impl.base.importer.zip;
exports org.jboss.shrinkwrap.impl.base.io;
exports org.jboss.shrinkwrap.impl.base.io.tar;
exports org.jboss.shrinkwrap.impl.base.io.tar.bzip;
exports org.jboss.shrinkwrap.impl.base.nio2.file;
exports org.jboss.shrinkwrap.impl.base.path;
exports org.jboss.shrinkwrap.impl.base.serialization;
exports org.jboss.shrinkwrap.impl.base.spec;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not something we need to address in this PR, but do we need to expose these? I would think we don't want developers using the implementation details, only the API.

@xjusko
xjusko requested a review from rhusar September 16, 2026 08:55
@xjusko
xjusko merged commit 4014062 into shrinkwrap:main Oct 6, 2026
6 checks passed
@rhusar

rhusar commented Oct 6, 2026

Copy link
Copy Markdown
Member

LGTM, thanks @xjusko !

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.

JPMS

3 participants