2015-04-01 12:01:07 +02:00
|
|
|
import NativePackagerHelper._
|
|
|
|
|
|
2013-11-15 11:53:21 +01:00
|
|
|
name := "akka-sample-main-scala"
|
|
|
|
|
|
2014-04-16 15:00:10 +02:00
|
|
|
version := "2.4-SNAPSHOT"
|
2013-11-15 11:53:21 +01:00
|
|
|
|
2015-01-22 09:49:36 +01:00
|
|
|
scalaVersion := "2.11.5"
|
2013-11-15 11:53:21 +01:00
|
|
|
|
|
|
|
|
libraryDependencies ++= Seq(
|
2014-03-07 13:43:05 +01:00
|
|
|
"com.typesafe.akka" %% "akka-actor" % "2.4-SNAPSHOT"
|
2013-11-15 11:53:21 +01:00
|
|
|
)
|
2015-04-01 12:01:07 +02:00
|
|
|
|
|
|
|
|
enablePlugins(JavaServerAppPackaging)
|
|
|
|
|
|
|
|
|
|
mainClass in Compile := Some("sample.hello.Main")
|
|
|
|
|
|
|
|
|
|
mappings in Universal ++= {
|
|
|
|
|
// optional example illustrating how to copy additional directory
|
|
|
|
|
directory("scripts") ++
|
|
|
|
|
// copy configuration files to config directory
|
|
|
|
|
contentOf("src/main/resources").toMap.mapValues("config/" + _)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// add 'config' directory first in the classpath of the start script,
|
|
|
|
|
// an alternative is to set the config file locations via CLI parameters
|
|
|
|
|
// when starting the application
|
|
|
|
|
scriptClasspath := Seq("../config/") ++ scriptClasspath.value
|
|
|
|
|
|