-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
40 lines (30 loc) · 927 Bytes
/
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
name := "distributed-key-value-store"
version := "0.1"
scalaVersion := "2.13.8"
idePackagePrefix := Some("ru.omyagkov")
import Dependencies._
ThisBuild / organization := "ru.omyagkov"
lazy val root = (project in file(".")).aggregate(Client, Server, Common)
lazy val Client = appModule("client")
.settings(
libraryDependencies ++=
Testing.All ++
Utils.All
++ Netty.All
++ Config.All
)
.dependsOn(Common)
lazy val Server = appModule("server")
.settings(
libraryDependencies ++=
Testing.All ++
Utils.All
++ Netty.All
)
.dependsOn(Common)
lazy val Common = appModule("common").settings(libraryDependencies ++= Logging.All)
def appModule(moduleID: String): Project = {
Project(id = moduleID, base = file(moduleID))
.enablePlugins(JavaAppPackaging)
.settings(name := moduleID, Universal / packageName := moduleID, Settings.commonSettings)
}