-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
64 lines (55 loc) · 2.01 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name := "chord-dht"
lazy val commonSettings = Seq(
organization := "de.denisgrebennicov",
version := "0.0.1",
scalaVersion := "2.12.11",
scalacOptions := Seq(
"-feature",
"-deprecation",
"-encoding", "UTF-8",
"-unchecked",
"-Xlint",
"-Yno-adapted-args",
"-Ywarn-dead-code",
"-Ywarn-value-discard",
"-Xfuture",
"-Xexperimental"
)
)
scalaVersion in ThisBuild := "2.12.11"
parallelExecution in Test := false
val akkaVersion = "2.5.22"
val akkaHttpVersion = "10.1.8"
val commonDependencies = Seq(
// logging
"com.typesafe.akka" %% "akka-slf4j" % akkaVersion,
"ch.qos.logback" % "logback-classic" % "1.2.3",
// testing
"org.scalacheck" %% "scalacheck" % "1.13.5" % Test,
"junit" % "junit" % "4.10" % Test,
"org.scalatest" %% "scalatest" % "3.0.5" % Test,
)
lazy val core = project.in(file("modules/core"))
.settings(commonSettings: _*)
.settings(libraryDependencies ++= commonDependencies)
.settings(libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % akkaVersion,
"com.typesafe.akka" %% "akka-remote" % akkaVersion,
"com.typesafe.akka" %% "akka-testkit" % akkaVersion % Test
))
.dependsOn(messages)
lazy val messages = project.in(file("modules/messages"))
.settings(commonSettings: _*)
.settings(libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-http" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-http-testkit" % akkaHttpVersion % Test,
"com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-stream" % akkaVersion,
"com.typesafe.akka" %% "akka-stream-testkit" % akkaVersion % Test,
"com.typesafe.akka" %% "akka-stream-typed" % akkaVersion,
))
lazy val monitor = project.in(file("modules/monitor"))
.settings(commonSettings: _*)
.settings(libraryDependencies ++= commonDependencies)
.settings(libraryDependencies += "ch.megard" %% "akka-http-cors" % "0.4.0")
.dependsOn(messages)