Repository navigation
RESTEASY-180 Adjusted scope for some dependencies in poms. - #412
Merged
Merged
Conversation
Junit should typically have a test scope as it is not normally part of production artifacts. The surefire plugin needs a version (otherwise maven complains), and corrected indenting for the maven-surefire-plugin declaration.
Junit should typically have a test scope as it is not normally part of production artifacts. The surefire plugin needs a version (otherwise maven complains), and corrected indenting for the maven-surefire-plugin declaration.
The Servlet API may be used to compile code, but the container (JBoss, Tomcat, Jetty) typically provides the implementation at runtime.
Plugin versions should be declared in PluginManagement, but then you don't need to mention them again in the build/plugin section (as they are inherited). Maven's super-pom already declares the basics (install, deploy, compiler, etc.) so you don't need to. The project should declare the encoding using project.build.sourceEncoding, then you don't need to specify it for every plugin as they typically refer to that.
Once was with provided scope, and the other with test scope. I kept the provided scope one and removed the other.
Removed the SLF4J-Simple runtime dependency because it violates the guidance from SLF4J. (Libraries should not dictate a runtime logging implementation.)
patriot1burke
added a commit
that referenced
this pull request
Oct 28, 2013
RESTEASY-180 Adjusted scope for some dependencies in poms.
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.
SLF4J-Simple was appearing as a runtime dependency, but it should not because it is a "logging implementation" and that choice should be the responsibility of the application (not a library).
Upgraded SLF4J and added a property to manage the version (like some other dependencies).
JUnit is a test framework, so it should have test scope. Alas, while changing the default, there are some example code that use JUnit directly, so had to explicitly mention compile scope. (I suspect that code could be moved to the test tree in the future to be more consistent with convention.)
Servlet API is now declared with provided scope by default, since its implementation is typically provided by the container (JBoss, Tomcat, Jetty).