【发布时间】:2012-02-05 21:16:59
【问题描述】:
我有一个多项目 SBT 项目,它看起来像 SBT doc 上的示例:
import sbt._
import Keys._
object HelloBuild extends Build {
lazy val root = Project(id = "hello",
base = file(".")) aggregate(foo, bar)
lazy val foo = Project(id = "hello-foo",
base = file("foo"))
lazy val bar = Project(id = "hello-bar",
base = file("bar"))
}
因为root 只是一个聚合两个子项目的虚拟项目,我想避免包生成(和工件发布),但仍然为两个子项目生成包(和发布)。
有没有简单的方法来实现它?
【问题讨论】: