Repository navigation
Declare javax.inject where it is used and drop two redundant plexus-utils declarations - #659
Merged
Merged
Conversation
modello-core supplies plexus-utils to the JSON Schema and SnakeYAML plugins, and no code in them references it. modello-test keeps its declaration, which sets the version consumers get.
Main code in these modules imports javax.inject directly. It was only arriving through modello-core.
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.
Removes the
plexus-utilsdeclaration frommodello-plugin-jsonschemaandmodello-plugin-snakeyaml, where no code references it andmodello-coresupplies it, and declaresjavax.injectin the 15 modules whose main code imports it but received it only throughmodello-core(providedinmodello-maven-plugin, like its other Maven-supplied dependencies).modello-testkeeps itsplexus-utilsdeclaration and gains a comment. Nothing in that module references it either, but it does not depend onmodello-core, so without the declaration a consumer resolves theplexus-utils3.6.2 of Sisu Plexus, whose XML classes duplicate those ofplexus-xml. The seven other plugin modules keep theirs because theirsrc/test/verifierssources useFileUtilsandIOUtil.Consumers see no change: the runtime
dependency:listof a project without a parent is identical before and after formodello-plugin-xpp3,modello-plugin-jacksonandmodello-maven-plugin, andmodello-test,modello-plugin-snakeyamlandmodello-plugin-jsonschemastill resolveplexus-utils4.2.0 andplexus-xml3.1.1.Verified:
mvn -B verifyon JDK 17 → BUILD SUCCESS, 180 tests. I have not run therun-itsprofile locally.Part of codehaus-plexus/.github#94.