[英]How can I access sub-projects of an sbt-plugin by using it as dependency in a multi-project build?
[英]sbt multi-project build with test dependency between projects?
说我有
lazy val foo = Project(
id = "foo",
base = file("foo")
)
lazy val bar = Project(
id = "bar",
base = file("bar")
dependencies = Seq(foo) // only want that for `% "test"`....
)
如何更改bar
以使其仅依赖于测试范围中的foo ?
你可以这样说: foo % "test->test"
。 这意味着测试取决于测试。 你可以有各种其他选项,比如foo % "test->test;compile->compile"
,这意味着它不仅取决于测试,还取决于编译(compile - > compile)。 你也可以测试依赖于编译foo % "test->compile"
等等。 它描述以及这里的文档。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.