-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
31 lines (24 loc) · 933 Bytes
/
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
name := "tokagroup-exercise"
version := "0.1"
scalaVersion := "2.12.7"
enablePlugins(PackPlugin)
lazy val akkaVersion = "2.5.18"
packMain := Map("watchZK" -> "com.tokagroup.exercise.Main")
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-http" % "10.1.5",
"com.typesafe.akka" %% "akka-stream" % akkaVersion,
"ch.qos.logback" % "logback-core" % "1.2.3",
"ch.megard" %% "akka-http-cors" % "0.3.1",
"com.typesafe.play" %% "play-json" % "2.6.10",
"org.apache.zookeeper" % "zookeeper" % "3.3.4" excludeAll(
ExclusionRule(organization = "javax.jms", name = "jms"),
ExclusionRule(organization = "com.sun.jdmk", name = "jmxtools"),
ExclusionRule(organization = "com.sun.jmx", name = "jmxri")
)
)
Compile / resourceGenerators += Def.task {
import scala.sys.process._
"npm start" !
val dir = new File((Compile / resourceDirectory).value.getAbsolutePath + "/interface")
dir.listFiles().toSeq
}