/guicedee-jpms-shade:guicedee-jpms-shadefrom guicedee-jpms-shade
Wraps non-modular JARs as Guiced JPMS service modules for jlink, handling shade/moditect setup, BOM registration, and consumer configuration.
Ships in guicedee-jpms-shade. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Turn an automatic-module dependency into a proper, named JPMS module published as a
guiced.net.services artifact, then make the consuming Guiced module require the
shaded module instead of the automatic one. This yields a clean jlink image (no automatic
modules on the module path).
requires <some.automatic.module> that resolves to a plain JAR.jlink / jpms rejects or warns about automatic modules.com.graphql-java:graphql-java:26.0).
Resolve the EXACT version the parent already pulls (check the dependency's own POM, the BOM
that imports it, or mvn dependency:tree). Pin to that version — do not guess.Automatic-Module-Name; if absent, derive a stable name from the root package.
See references/inspect-jar.md for ready-to-run commands to read the manifest and enumerate
packages (needed for accurate exports).requires in the module-info.
Annotation-only deps (jspecify, jsr305, checker, error_prone) become requires static.Many libraries already relocate their transitives internally (e.g. graphql-java bundles ANTLR and Guava under
graphql.*). Inspect the package list — only NON-relocated, externally-visible dependencies need arequires.
Create GuicedEE/services/Libraries/<artifactId>/ (mirror the json / kafka-client modules):
pom.xml — parent guiced.net:parent, groupId guiced.net.services, the shade
artifactSet pinned to the single upstream artifact, and the standard plugin chain
(shade → antrun → moditect → flatten → copy-rename → javadoc). Exclude transitives that you
re-add as their own proper modules.src/moditect/module-info.java — the named module descriptor.Use the exact templates in references/templates.md.
module <module-name> { ... } using the manifest's Automatic-Module-Name.exports every public package found in the JAR EXCEPT internally-relocated/shaded packages
(e.g. *.com.google.*, *.org.antlr.*).requires transitive for deps whose types appear in the exported API (e.g. org.reactivestreams).requires static for annotation-only deps.provides ... with ... for any META-INF/services the JAR ships (the SPI needs explicit
provides in the descriptor, even though the shade keeps the service files).GuicedEE/bom/Versioner/pom.xml — add <...version> properties for the upstream artifact(s).GuicedEE/bom/StandaloneBOM/pom.xml — dependencyManagement for the UPSTREAM artifacts (so the
shade module's pom.xml and its exclusions resolve versions).GuicedEE/bom/pom.xml (bom) — dependencyManagement for the new
guiced.net.services:<artifactId> at ${guiced.version} (so consumers omit versions).DevSuite/pom.xml → services profile <modules> list. This is the module list the
dev-suite GitHub workflows build/deploy; the reusable workflows in GuicedEE/workflows are generic
templates and do NOT enumerate modules. Each shade also ships as its own GitHub repo that calls the
reusable Projects Builder workflow — mention this to the user, but it is created outside DevSuite.GuicedEE/services/services.md.In the Guiced module that used the automatic module:
com.graphql-java:graphql-java from io.vertx:vertx-web-graphql).guiced.net.services:<artifactId>.module-info.java usually needs no change: the shaded module keeps the same
module name, so requires <module-name> already resolves — now to a real named module.Install the updated BOMs first so the shade module resolves the current local management, then build:
mvn -B -N install # in Versioner, then StandaloneBOM, then GuicedEE/bom
mvn -B install -DskipTests -Dmaven.javadoc.skip=true # in each new shade module
jar --describe-module --file target/<artifactId>-<ver>.jar # confirm requires/exports
mvn -B -o compile # in the consumer module — must compile on the module path
Confirm jar --describe-module shows the expected named module with correct requires/exports,
and that the consumer compiles with [debug release N module-path].
Get-Command mvn.cmd, java.exe and verify the repository's JDK requirement. Use separate invocations, quote Maven -D arguments, and preserve existing build output. Do not require a version-specific installation path or Maven clean for validation.requires for JDK modules. When a library internally relocates
its dependencies (e.g. graphql-java bundles Guava under graphql.com.google.* and ANTLR under
graphql.org.antlr.*), those classes still use JDK APIs such as java.util.logging. As an
automatic module the jar implicitly read every module, so it worked; as a named module it only
reads what it requires. Missing ones surface at RUNTIME, not compile time, as
IllegalAccessError: class X (in module M) cannot access class Y (in module java.logging) because module M does not read module java.logging. Add the JDK module (e.g. requires java.logging;).
Compile + jar --describe-module will NOT catch this — only running the code does. Always run the
consumer's integration tests after a shade.The verified Hazelcast wrapper lives at GuicedEE/services/JCache/hazelcast: artifact guiced.net.services:hazelcast-all, module com.hazelcast.core. Relocate its private com.codahale.metrics copy to com.hazelcast.shaded.metrics so it can coexist with the application's metrics module. Export the public com.hazelcast.cache API required by JCache integration; keep relocated internals private.
Install the wrapper before rebuilding Hazelcast and its application consumer. Verify dependency resolution, the assembled module path, and a real multi-JVM packaged application run. jar --describe-module and compilation alone do not prove runtime exports, service discovery, or absence of split packages.
When preserving target, several versioned JARs may coexist. Select the artifact name actually present on the tested module path, then compare its SHA-256 with the framework build output. Choosing the first glob match can report or test an obsolete JAR. Keep generated-source, focused-test, packaged-runtime, and live deployment evidence distinct.
references/templates.md — copy-paste pom.xml and module-info.java templates + BOM snippets.references/inspect-jar.md — PowerShell snippets to read the manifest module name and package list.references/worked-example.md — the graphql-java + java-dataloader case, end to end.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub guicedee/ai-rules --plugin guicedee-jpms-shade