forked from pgabara/sparxer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
34 lines (30 loc) · 1.08 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import Settings._
import Dependencies._
import Dependencies.Implicits._
lazy val sparxer = project.in(file("."))
.settings(commonSettings)
.settings(libraryDependencies ++= scopt ++ tests.test)
.dependsOn(http, engine)
.aggregate(protocol, engine, http)
.enablePlugins(JavaAppPackaging)
lazy val protocol = project.in(file("protocol"))
.settings(commonSettings)
.settings(name := ProjectName + "-protocol")
.settings(libraryDependencies ++= akka ++ monix ++ tests.test)
.settings(
PB.targets in Compile := Seq(
scalapb.gen() -> (sourceManaged in Compile).value
)
)
lazy val engine = project.in(file("engine"))
.configs(IntegrationTest)
.settings(Defaults.itSettings)
.settings(commonSettings)
.settings(name := ProjectName + "-engine")
.settings(libraryDependencies ++= akkaCluster ++ sparkCore ++ monix ++ tests.it)
.dependsOn(protocol)
lazy val http = project.in(file("http"))
.settings(commonSettings)
.settings(name := ProjectName + "-http")
.settings(libraryDependencies ++= akkaHttp ++ akkaCluster ++ monix ++ tests.test)
.dependsOn(protocol)