[Play-2.0.1] Exclude dependency

667 views
Skip to first unread message

Filippo De Luca

unread,
Jun 10, 2012, 7:22:43 AM6/10/12
to play-fr...@googlegroups.com
Hi
how is it possible to exclude a transitive dependecy from a Play-2 application? Some xml-apis or relate dependency are causing me problem with JasperReports. Thank you. Is there anything similar to maven "provided" scope in sbt?

Nico

unread,
Jun 10, 2012, 9:32:37 AM6/10/12
to play-fr...@googlegroups.com

Filippo De Luca

unread,
Jun 10, 2012, 10:40:15 AM6/10/12
to play-fr...@googlegroups.com
Hi Nico,
Thanks for the answer. I have tried all the explained solutions, without luck. Running "sbt dependencies" I see always the xml-apis requested by dom4j requested by reflections etc etc. 

Filippo De Luca

unread,
Jun 10, 2012, 1:00:16 PM6/10/12
to play-fr...@googlegroups.com
I have solved!

GrailsDeveloper

unread,
Jun 10, 2012, 3:12:45 PM6/10/12
to play-fr...@googlegroups.com
I think it's useful for the future if you explain how. Or what you make wrong after reading the other post.
Niels

Nico

unread,
Jun 10, 2012, 4:38:27 PM6/10/12
to play-fr...@googlegroups.com
+1

Marco Palladino

unread,
Jul 23, 2012, 10:29:06 PM7/23/12
to play-fr...@googlegroups.com
Can you please explain how?

Myyk

unread,
Aug 28, 2012, 2:22:14 PM8/28/12
to play-fr...@googlegroups.com
Sorry, I accidentally posted the wrong link in response above.  This is the link to the SBT doc: https://github.com/harrah/xsbt/wiki/Library-Management

The section of interest is "Exclude Transitive Dependencies".

On Monday, August 27, 2012 6:28:26 PM UTC-7, Myyk wrote:
I encountered this problem earlier.  You can use this kind of syntax to exclude transitive dependencies.
    ...
    "net.debasishg" %% "sjson" % "0.12" exclude("org.scala-lang", "scala-library"),
    "org.jclouds.api" % "filesystem" % "1.2.1" excludeAll(
        ExclusionRule(organization = "org.clojure")
    ),
    ...

For more information on this, check out SBT's docs.  http://www.playframework.org/documentation/2.0.2/SBTDependencies
Reply all
Reply to author
Forward
0 new messages