Repository navigation
Add a real JPMS module descriptor: com.github.zrdj.java.filesearch - #23
Merged
Merged
Conversation
Without a module-info.class or an Automatic-Module-Name entry, consumers on the module path get the automatic name derived from the jar file name, "java.filesearch", which lies in the java.* namespace the JDK reserves for platform modules. It works today only because classpath starts never resolve the name. Add module-info.java naming the module after its root package and exporting all seven packages, since every one of them is reachable on the classpath today. The library has no non-test dependencies, so there is no requires clause. The compiler plugin picks up the descriptor without further build configuration; bump the version to 0.5.0 in pom.xml and the README, and record the decision. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
src/main/java/module-info.javadeclaringmodule com.github.zrdj.java.filesearch, exporting all seven packages, with norequires. Version goes to 0.5.0.Why
Without a descriptor or
Automatic-Module-Name, JPMS derives the module namejava.filesearchfrom the jar file name, which lands in thejava.*namespace the JDK reserves. It only works while the consumer starts from the classpath. Same fix as ZrdJ/java-properties#18; triggered by tibbots/bots wanting to use the zrdj libraries from JPMS modules.Decision:
.docs/project/decisions/2026-10-18-real-module-descriptor-instead-of-automatic-name.md.Check
./dev check: 27 tests green.module-info.classis in the 0.5.0 jar.🤖 Generated with Claude Code