In Build.scala
I have a dependency between projects:
val coreLib = Projects.coreLib()
val consoleApp = Projects.consoleApp().dependsOn(coreLib)
val androidApp = Projects.androidProject().dependsOn(coreLib/*, exclusions = xpp */)
Core library project defines a library in its libraryDependencies
(XPP parser), which I want to exclude in androidApp
, since Android framework have its own XPP implementation out of the box.
How can I exclude XPP library from transitive dependencies of coreLib
in androidApp
project?
EDIT:
According to my research exclusion is possible ONLY to ModuleID
which is used in conjunction with libraryDependency
. Meanwhile dependsOn
puts all transitive dependencies to classpath, there is no way in api to exclude some transitive dependencies of this project, you dependsOn
DETAILS:
I'm running sbt 0.13.5 currently.
libraryDependencies
of commonLib as well as it various settings supplied in build.sbt so that this project could be reused as standalone, and because it feels right and natural way of supplying settings in sbt
.