-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.sbt
35 lines (27 loc) · 1.02 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
name := "akka-docker"
version := "2.3.10"
scalaVersion := "2.11.5"
enablePlugins(JavaAppPackaging)
maintainer := "Nepomuk Seiler"
packageSummary := s"Akka ${version.value} Server"
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % version.value,
"com.typesafe.akka" %% "akka-cluster" % version.value,
"com.github.scopt" %% "scopt" % "3.2.0"
)
// Create custom run tasks to start a seed and a cluster node
// http://www.scala-sbt.org/0.13.0/docs/faq.html#how-can-i-create-a-custom-run-task-in-addition-to-run
lazy val runSeed = taskKey[Unit]("Start the seed node on 127.0.0.1:2551")
fullRunTask(runSeed, Compile, "com.example.Main", "--seed")
fork in runSeed := true
javaOptions in runSeed ++= Seq(
"-Dclustering.ip=127.0.0.1",
"-Dclustering.port=2551"
)
lazy val runNode = taskKey[Unit]("Start a node on 127.0.0.1:2552")
fullRunTask(runNode, Compile, "com.example.Main", "127.0.0.1:2551")
fork in runNode := true
javaOptions in runNode ++= Seq(
"-Dclustering.ip=127.0.0.1",
"-Dclustering.port=2552"
)