-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.sbt
More file actions
46 lines (40 loc) · 1.37 KB
/
Copy pathbuild.sbt
File metadata and controls
46 lines (40 loc) · 1.37 KB
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
ThisBuild / organization := "univ.postech.csed-332.team-cyan"
ThisBuild / scalaVersion := "2.12.17"
// ThisBuild / scalacOptions += "-release:11"
version := "0.1.0"
name := "DistSort"
lazy val scalatest = "org.scalatest" %% "scalatest" % "3.2.7"
ThisBuild / libraryDependencies ++= Seq(
"io.grpc" % "grpc-netty" % scalapb.compiler.Version.grpcJavaVersion,
"com.thesamet.scalapb" %% "scalapb-runtime-grpc" % scalapb.compiler.Version.scalapbVersion,
scalatest % Test
)
ThisBuild / assembly / assemblyMergeStrategy := {
case "META-INF/io.netty.versions.properties" => MergeStrategy.concat
case x => {
val oldStrategy = (assembly / assemblyMergeStrategy).value
oldStrategy(x)
}
}
lazy val root = (project in file("."))
.aggregate(master, worker, network, common)
.configs(IntegrationTest)
.settings(
Defaults.itSettings,
libraryDependencies += scalatest % "it,test",
run / aggregate := false,
assembly / aggregate := false,
)
.dependsOn(master, worker, network, common)
lazy val common = (project in file("common"))
lazy val network = (project in file ("network"))
lazy val master = (project in file("master"))
.dependsOn(network, common)
.settings(
assembly / assemblyJarName := "master.jar",
)
lazy val worker = (project in file("worker"))
.dependsOn(network, common)
.settings(
assembly / assemblyJarName := "worker.jar",
)