-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathbuild.sbt
45 lines (31 loc) · 1.04 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
name := "clustering"
organization := "com.mlh"
version := "0.4"
homepage := Some(url("https://github.com/mhamrah/clustering"))
startYear := Some(2013)
/* scala versions and options */
scalaVersion := "2.12.5"
// These options will be used for *all* versions.
scalacOptions ++= Seq(
"-deprecation",
"-unchecked",
"-encoding", "UTF-8",
"-Xlint",
)
val akka = "2.5.11"
/* dependencies */
libraryDependencies ++= Seq (
// -- Logging --
"ch.qos.logback" % "logback-classic" % "1.1.1",
// -- Akka --
"com.typesafe.akka" %% "akka-actor" % akka,
"com.typesafe.akka" %% "akka-slf4j" % akka,
"com.typesafe.akka" %% "akka-cluster" % akka,
"com.typesafe.akka" %% "akka-testkit" % akka % "test"
)
maintainer := "Michael Hamrah <[email protected]>"
dockerExposedPorts in Docker := Seq(1600)
dockerEntrypoint in Docker := Seq("sh", "-c", "CLUSTER_IP=`/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1 }'` bin/clustering $*")
dockerRepository := Some("mhamrah")
dockerBaseImage := "java"
enablePlugins(JavaAppPackaging)