-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
35 lines (33 loc) · 1.49 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
import com.typesafe.sbt.SbtMultiJvm.multiJvmSettings
import com.typesafe.sbt.SbtMultiJvm.MultiJvmKeys.MultiJvm
val akkaVersion = "2.5.16"
val `wordcount2` = project
.in(file("."))
.settings(multiJvmSettings: _*)
.settings(
organization := "com.ana3",
scalaVersion := "2.12.6",
scalacOptions in Compile ++= Seq("-deprecation", "-feature", "-unchecked", "-Xlog-reflective-calls", "-Xlint"),
javacOptions in Compile ++= Seq("-Xlint:unchecked", "-Xlint:deprecation"),
javacOptions in doc in Compile := Seq("-Xdoclint:none"),
javaOptions in run ++= Seq("-Xms128m", "-Xmx1024m"),
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % akkaVersion,
"com.typesafe.akka" %% "akka-cluster" % akkaVersion,
"com.typesafe.akka" %% "akka-multi-node-testkit" % akkaVersion,
"com.typesafe.akka" %% "akka-testkit" % akkaVersion,
"com.typesafe.akka" %% "akka-slf4j" % akkaVersion,
"ch.qos.logback" % "logback-classic" % "1.2.3",
"org.scalatest" %% "scalatest" % "3.0.5" % Test,
"junit" % "junit" % "4.12" % Test,
),
fork in run := true,
mainClass in (Compile, run) := Some("com.ana3.WordCountMain"),
mainClass in assembly := Some("com.ana3.WordCountMain"),
test in assembly := {},
javaSource in Test := baseDirectory.value / "src" / "test",
// disable parallel tests
parallelExecution in Test := false,
licenses := Seq(("CC0", url("http://creativecommons.org/publicdomain/zero/1.0")))
)
.configs (MultiJvm)