Skip to content

RESTEASY-180 Adjusted scope for some dependencies in poms. - #412

Merged
patriot1burke merged 6 commits into
resteasy:masterfrom
awhitford:RESTEASY-180
Oct 28, 2013
Merged

patriot1burke merged 6 commits into
resteasy:masterfrom
awhitford:RESTEASY-180

Conversation

@awhitford

Copy link
Copy Markdown
Contributor

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).

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.
@patriot1burke
patriot1burke merged commit 9bf8072 into resteasy:master Oct 28, 2013
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.

2 participants