Control which library dependency exported in SBT -



Control which library dependency exported in SBT -

i looking way command library dependency exported, , not. along lines:

"org.slf4j" % "slf4j-api" % "1.7.6" donotexport

or perhaps @ point project imported, this:

lazy val main = project(appname, file("."), settings = buildsettings) .dependson(projectref(uri("../utils"), "utils").exceptlibrarydependency(organization="org.slf4j"))

is there in sbt?

well, depends on configurations. default configurations expose dependencies again. similar behavior can achieved this:

val compileonly = config("compileonly").hide ivyconfigurations += compileonly unmanagedclasspath in compile ++= update.value.select(configurationfilter(compileonly.name)) "org.slf4j" % "slf4j-api" % "1.7.6" % compileonly

note technique descibed in reply add compile time dependency in sbt.

this question should closed duplicate, bounty prevents this.

sbt

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -