28 lines
774 B
Scala
28 lines
774 B
Scala
import NativePackagerHelper._
|
|
|
|
name := "akka-sample-main-scala"
|
|
|
|
version := "2.4-SNAPSHOT"
|
|
|
|
scalaVersion := "2.11.5"
|
|
|
|
libraryDependencies ++= Seq(
|
|
"com.typesafe.akka" %% "akka-actor" % "2.4-SNAPSHOT"
|
|
)
|
|
|
|
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
|
|
|