pekko/akka-samples/akka-sample-main-scala/build.sbt

29 lines
774 B
Text
Raw Normal View History

2015-04-01 12:01:07 +02:00
import NativePackagerHelper._
name := "akka-sample-main-scala"
version := "2.4-SNAPSHOT"
2015-09-07 10:26:51 +02:00
scalaVersion := "2.11.7"
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % "2.4-SNAPSHOT"
)
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