Repository navigation
Narrow Jackson and SnakeYAML to test scope - #660
Merged
Merged
Conversation
The generators only write the names of these classes into the code they generate. The libraries are needed to compile that code in the tests, not to run the generators.
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.
Narrows
jackson-core,jackson-databindandjackson-annotationsinmodello-plugin-jackson, andsnakeyamlinmodello-plugin-snakeyaml, totestscope. The generators never load these libraries: they write the class names into the sources they generate, and only the tests compile and run that generated code.The runtime classpath of
modello-maven-pluginloses three jars (dependency:list -DincludeScope=runtime):jackson-corestays, becausemodello-plugin-jsonschemauses it to write the schema.Compatibility: a project that depends on
modello-plugin-jacksonormodello-plugin-snakeyamlas a library no longer gets Jackson or SnakeYAML through it. A project that compiles generated readers and writers has to declare the library itself, as it already must when it runs the generator through the Maven plugin.Verified:
mvn -B installon JDK 17 → BUILD SUCCESS, 180 tests. I have not run therun-itsprofile locally.Part of codehaus-plexus/.github#94.