-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
54 lines (48 loc) · 1.57 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
// Kludge to avoid building an empty .jar for the root project
Keys.`package` := {
(Keys.`package` in (lchannels, Compile)).value
(Keys.`package` in (examples, Compile)).value
(Keys.`package` in (benchmarks, Compile)).value
}
lazy val commonSettings = Seq(
version := "0.0.3",
scalaVersion := "2.12.14",
scalacOptions ++= Seq(
"-target:jvm-1.8", "-unchecked", "-feature", "-Ywarn-unused-import" // "-deprecation"
),
// ScalaDoc setup
autoAPIMappings := true,
scalacOptions in (Compile,doc) ++= Seq(
"-no-link-warnings" // Workaround for ScalaDoc @throws links issues
)
)
lazy val lchannels = (project in file("lchannels")).
settings(commonSettings: _*).
settings(
name := "lchannels",
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-typed" % "2.5.0",
"com.typesafe.akka" %% "akka-remote" % "2.5.0"
)
)
lazy val examples = (project in file("examples")).
dependsOn(lchannels).
settings(commonSettings: _*).
settings(
name := "lchannels-examples",
libraryDependencies ++= Seq(
"org.slf4j" % "slf4j-simple" % "1.7.25",
"com.typesafe.scala-logging" %% "scala-logging" % "3.5.0"
)
)
lazy val benchmarks = (project in file("benchmarks")).
dependsOn(lchannels).
settings(commonSettings: _*).
settings(
name := "lchannels-benchmarks"
// Depending on the benchmark size and duration, you might want
// to add the following options:
//
// fork := true, // Fork a JVM, running inside benchmarks/ dir
// javaOptions ++= Seq("-Xms1024m", "-Xmx1024m") // Enlarge heap size
)