-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
49 lines (41 loc) · 1.2 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name := "cs434-project"
version := "0.1"
scalaVersion := "2.13.3"
// sub project settings
lazy val root = project
.in(file("."))
.aggregate(
common,
master,
slave
)
lazy val common = project
.settings(
name := "common",
libraryDependencies ++= commonDependencies,
PB.targets in Compile := Seq(
scalapb.gen() -> (sourceManaged in Compile).value / "scalapb"
)
)
lazy val master = project
.settings(
name := "master",
libraryDependencies ++= commonDependencies
)
.enablePlugins(JavaAppPackaging)
.dependsOn(common)
lazy val slave = project
.settings(
name := "slave",
libraryDependencies ++= commonDependencies
)
.enablePlugins(JavaAppPackaging)
.dependsOn(common)
lazy val commonDependencies = Seq(
"io.grpc" % "grpc-netty" % scalapb.compiler.Version.grpcJavaVersion,
"com.thesamet.scalapb" %% "scalapb-runtime-grpc" % scalapb.compiler.Version.scalapbVersion,
"org.apache.logging.log4j" % "log4j-api" % "2.14.0",
"org.apache.logging.log4j" % "log4j-core" % "2.14.0" % Runtime,
"org.apache.logging.log4j" %% "log4j-api-scala" % "12.0",
"org.scalatest" %% "scalatest" % "3.0.8" % Test
)