forked from anantprsd5/starchat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
41 lines (30 loc) · 1.22 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
import NativePackagerHelper._
name := "StarChat"
version := "0.1"
organization := "io.elegans"
scalaVersion := "2.11.8"
resolvers ++= Seq("Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/",
Resolver.bintrayRepo("hseeberger", "maven"))
libraryDependencies ++= {
val AkkaVersion = "2.4.10"
val AkkaHttpVersion = AkkaVersion
val ESClientVersion = "2.4.0"
Seq(
"com.typesafe.akka" %% "akka-slf4j" % AkkaVersion,
"com.typesafe.akka" %% "akka-http-experimental" % AkkaHttpVersion,
"com.typesafe.akka" %% "akka-http-spray-json-experimental" % AkkaHttpVersion,
"ch.qos.logback" % "logback-classic" % "1.1.2",
"org.elasticsearch" % "elasticsearch" % ESClientVersion,
"log4j" % "log4j" % "1.2.17" // dependency of es libs
)
}
enablePlugins(JavaServerAppPackaging)
// Assembly settings
mainClass in Compile := Some("io.elegans.starchat.Main")
mappings in Universal ++= {
// copy configuration files to config directory
directory("scripts") ++
contentOf("src/main/resources").toMap.mapValues("config/" + _).toSeq
}
scriptClasspath := Seq("../config/") ++ scriptClasspath.value
licenses := Seq(("GPLv3", url("https://opensource.org/licenses/MIT")))