FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: ensuring the automatic module name is a valid name by replacing the - to . in artifactId by themaherkhalil · Pull Request #802 · modelcontextprotocol/java-sdk · GitHub

fix: ensuring the automatic module name is a valid name by replacing the - to . in artifactId - #802

Open
themaherkhalil wants to merge 4 commits into
modelcontextprotocol:mainfrom
themaherkhalil:main
Open

fix: ensuring the automatic module name is a valid name by replacing the - to . in artifactId#802
themaherkhalil wants to merge 4 commits into
modelcontextprotocol:mainfrom
themaherkhalil:main

Conversation

Copy link
Copy Markdown

Accidentally closed my previous PR #739 - resolved the merge conflict but the below description is still valid.

Currently the jar's automatic module name is invalid as it contains a - in the artifactId. If you run:

➜  0.17.0 jar --describe-module --file mcp-core-0.17.0.jar
Unable to derive module descriptor for: mcp-core-0.17.0.jar
Automatic-Module-Name: io.modelcontextprotocol.sdk.mcp-core: Invalid module name: 'mcp-core' is not a Java identifier

This prevents other projects using modules to import the jar.

The change is to replace the - with a .

After compiling the code to build the jar, running the command will produce:

➜  target git:(main) jar --describe-module --file mcp-core-0.18.0-SNAPSHOT.jar
No module descriptor found. Derived automatic module.

io.modelcontextprotocol.sdk.mcp.core@0.18.0-SNAPSHOT automatic
requires java.base mandated
contains io.modelcontextprotocol.client
contains io.modelcontextprotocol.client.transport
contains io.modelcontextprotocol.client.transport.customizer
contains io.modelcontextprotocol.common
contains io.modelcontextprotocol.json
contains io.modelcontextprotocol.json.schema
contains io.modelcontextprotocol.server
contains io.modelcontextprotocol.server.transport
contains io.modelcontextprotocol.spec
contains io.modelcontextprotocol.util

Copy link
Copy Markdown
Author

Also including previous comment requesting the change as well: #739 (comment)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL