Repository navigation
Declare optional provider dependencies in the Maven POM - #1094
Open
hutiefang76 wants to merge 1 commit into
Open
hutiefang76 wants to merge 1 commit into
hutiefang76 wants to merge 1 commit into
Conversation
Generated-by: DeepSeek Generated-by: OpenAI Codex
This branch has not been deployed
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.
Fixes #1082.
The generated POM currently lists json-smart and slf4j-api but omits the compile-only APIs used by the provider classes shipped in the JAR. Add those existing dependency coordinates to the POM with
optional=true, so POM-based tooling can discover Jackson 2, Jackson 3, Gson, JSON.org, Tapestry, Jettison, and the Jakarta JSON-P/JSON-B APIs. Versions come from the existing declarations; normal Maven consumers continue to resolve the default provider dependencies.Validation:
clean build checkand both modules' POM generation pass on JDK 17.0.18 and 21.0.10. Each run reports 1,026 tests, with 0 failures/errors and 13 skipped (1,013 passed).AI assistance: DeepSeek and OpenAI Codex.