-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.sbt
80 lines (75 loc) · 2.63 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name := "chordial"
lazy val commonSettings = Seq(
organization := "com.tristanpenman",
version := "0.0.1",
ThisBuild / scalafmtOnCompile := true,
ThisBuild / scalafmtVersion := "1.4.0",
ThisBuild / scalaVersion := "2.13.6",
resolvers ++= Seq(
"Typesafe Releases" at "https://repo.typesafe.com/typesafe/maven-releases/",
Resolver.jcenterRepo,
Resolver.sonatypeRepo("releases"),
Resolver.bintrayRepo("akka", "maven")
),
scalacOptions := Seq(
"-feature",
"-unchecked",
"-deprecation",
"-opt-warnings:_",
"-unchecked",
"-Xlint:_",
"-Ywarn-dead-code",
"-Ywarn-extra-implicit",
"-Ywarn-unused:_"
),
// Work-around for metaspace OOM issues that occur with Scala 2.12.8 and sbt 1.3.0-RC1
Test / fork := true,
Test / javaOptions ++= Seq("-Xmx256m")
)
lazy val akkaVersion = "2.5.32"
lazy val akkaHttpCorsVersion = "1.1.1"
lazy val akkaHttpVersion = "10.2.2"
lazy val guavaVersion = "29.0-jre"
lazy val scalatestVersion = "3.1.2"
lazy val core = project
.in(file("modules/core"))
.settings(commonSettings: _*)
.settings(
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % akkaVersion,
"com.typesafe.akka" %% "akka-testkit" % akkaVersion % "test",
"org.scalatest" %% "scalatest" % scalatestVersion % "test"
)
)
lazy val demo = project
.in(file("modules/demo"))
.dependsOn(core)
.settings(commonSettings: _*)
.settings(
libraryDependencies ++= Seq(
"ch.megard" %% "akka-http-cors" % akkaHttpCorsVersion,
"com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-http" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-remote" % akkaVersion,
"com.typesafe.akka" %% "akka-stream" % akkaVersion,
"com.typesafe.akka" %% "akka-stream-testkit" % akkaVersion % "test",
"com.typesafe.akka" %% "akka-http-testkit" % akkaHttpVersion % "test",
"org.scalatest" %% "scalatest" % scalatestVersion % "test"
)
)
lazy val dht = project
.in(file("modules/dht"))
.dependsOn(core)
.settings(commonSettings: _*)
.settings(
libraryDependencies ++= Seq(
"ch.megard" %% "akka-http-cors" % akkaHttpCorsVersion,
"com.google.guava" % "guava" % guavaVersion,
"com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-http" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-stream" % akkaVersion,
"com.typesafe.akka" %% "akka-stream-testkit" % akkaVersion % "test",
"com.typesafe.akka" %% "akka-http-testkit" % akkaHttpVersion % "test",
"org.scalatest" %% "scalatest" % scalatestVersion % "test"
)
)