-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
49 lines (42 loc) · 1.3 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
ThisBuild / version := "0.1.0-SNAPSHOT"
ThisBuild / scalaVersion := "2.13.12"
val commonSettings = Seq(
assembly / assemblyMergeStrategy := {
case PathList("META-INF", _*) => MergeStrategy.discard
case _ => MergeStrategy.first
},
)
lazy val root = (project in file("."))
.aggregate(chatserver, subscriber)
.settings(name := "root")
.settings(commonSettings)
lazy val domain = (project in file("domain"))
.settings(
name := "domain",
libraryDependencies := Dependencies.Json,
)
.settings(commonSettings)
lazy val services = (project in file("services"))
.settings(
name := "services",
libraryDependencies := Dependencies.Services,
)
.dependsOn(domain)
lazy val chatserver = (project in file("chatserver"))
.settings(
name := "chatserver",
assembly / assemblyJarName := "chatserver.jar",
assembly / mainClass := Some("ChatServer"),
libraryDependencies := Dependencies.ChatServer,
)
.settings(commonSettings)
.dependsOn(services)
lazy val subscriber = (project in file("subscriber"))
.settings(
name := "subscriber",
assembly / assemblyJarName := "subscriber.jar",
assembly / mainClass := Some("Subscriber"),
libraryDependencies := Dependencies.Subscriber,
)
.settings(commonSettings)
.dependsOn(services)