mirror of https://github.com/sbt/sbt.git
Port tests/serial
This commit is contained in:
parent
1a8149568e
commit
85b9a78245
|
|
@ -0,0 +1,27 @@
|
|||
val commonSettings = Seq(
|
||||
libraryDependencies += "org.scalatest" %% "scalatest" % "1.9.1" % "test"
|
||||
)
|
||||
|
||||
lazy val root = (project in file(".")).
|
||||
aggregate(sub1, sub2).
|
||||
settings(inThisBuild(List(
|
||||
organization := "com.softwaremill",
|
||||
version := "0.0.1-SNAPSHOT",
|
||||
scalaVersion := "2.10.0"
|
||||
)),
|
||||
commonSettings
|
||||
)
|
||||
|
||||
lazy val rootRef = LocalProject("root")
|
||||
|
||||
lazy val sub1 = project.
|
||||
dependsOn(rootRef).
|
||||
settings(
|
||||
commonSettings
|
||||
)
|
||||
|
||||
lazy val sub2 = project.
|
||||
dependsOn(rootRef).
|
||||
settings(
|
||||
commonSettings
|
||||
)
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
import sbt._
|
||||
import Keys._
|
||||
import Import._
|
||||
|
||||
object SomeBuild extends Build {
|
||||
val buildSettings = Seq(
|
||||
organization := "com.softwaremill",
|
||||
version := "0.0.1-SNAPSHOT",
|
||||
scalaVersion := "2.10.0",
|
||||
libraryDependencies += "org.scalatest" %% "scalatest" % "1.9.1" % "test"
|
||||
)
|
||||
|
||||
lazy val parent: Project = Project("root", file("."), aggregate = Seq(sub1,sub2)).settings(buildSettings : _*)
|
||||
|
||||
lazy val sub1: Project = Project("sub1", file("sub1")).settings(buildSettings : _*).dependsOn(parent)
|
||||
lazy val sub2: Project = Project("sub2", file("sub2")).settings(buildSettings : _*).dependsOn(parent)
|
||||
}
|
||||
Loading…
Reference in New Issue