2011-11-27 07:58:23 +08:00
|
|
|
import sbt._
|
|
|
|
import Keys._
|
|
|
|
|
|
|
|
object ConfigBuild extends Build {
|
2011-11-27 08:42:52 +08:00
|
|
|
lazy val root = Project(id = "root",
|
2011-11-29 01:23:21 +08:00
|
|
|
base = file(".")) aggregate(testLib, configLib, simpleLib, simpleApp)
|
2011-11-27 08:42:52 +08:00
|
|
|
|
|
|
|
lazy val configLib = Project(id = "config",
|
2011-11-27 09:33:27 +08:00
|
|
|
base = file("config")) dependsOn(testLib % "test->test")
|
|
|
|
|
|
|
|
lazy val testLib = Project(id = "test-lib",
|
|
|
|
base = file("test-lib"))
|
2011-11-29 01:23:21 +08:00
|
|
|
|
|
|
|
lazy val simpleLib = Project(id = "simple-lib",
|
|
|
|
base = file("examples/simple-lib")) dependsOn(configLib)
|
|
|
|
|
|
|
|
lazy val simpleApp = Project(id = "simple-app",
|
|
|
|
base = file("examples/simple-app")) dependsOn(simpleLib)
|
|
|
|
|
|
|
|
lazy val complexApp = Project(id = "complex-app",
|
|
|
|
base = file("examples/complex-app")) dependsOn(simpleLib)
|
2011-11-27 07:58:23 +08:00
|
|
|
}
|