-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbuild.sbt
More file actions
23 lines (20 loc) · 783 Bytes
/
build.sbt
File metadata and controls
23 lines (20 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
def subProject(name: String, maybeMainClass: Option[String] = None): Project = {
val generalSettings = Defaults.coreDefaultSettings ++ Seq(
parallelExecution in IntegrationTest := false,
scalaVersion := "2.12.2",
mainClass in Compile := maybeMainClass,
assemblyJarName in assembly := s"spdt-$name.jar",
test in assembly := false
)
Project(id = s"spdt-$name", base = file(name), settings = generalSettings ++ Defaults.itSettings)
}
lazy val root = Project(
id = "spdt",
base = file("."),
settings = Seq(
name := "spdt"
),
aggregate = Seq(serve, compute)
)
lazy val compute = subProject("compute", Some("com.soundcloud.spdt.Application"))
lazy val serve = subProject("serve", Some("com.soundcloud.spdt.serve.Application")).dependsOn(compute)