forked from lmenezes/cerebro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
52 lines (37 loc) · 1.71 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
42
43
44
45
46
47
48
49
50
51
52
name := "cerebro"
maintainer := "Leonardo Menezes <leonardo.menezes@xing.com>"
packageSummary := "Elasticsearch web admin tool"
packageDescription := """cerebro is an open source(MIT License) elasticsearch web admin tool built
using Scala, Play Framework, AngularJS and Bootstrap."""
version := "0.9.1"
scalaVersion := "2.12.11"
rpmVendor := "lmenezes"
rpmLicense := Some("MIT")
rpmUrl := Some("http://github.com/lmenezes/cerebro")
libraryDependencies ++= Seq(
"com.typesafe.play" %% "play" % "2.8.1",
"com.typesafe.play" %% "play-json" % "2.8.1",
"com.typesafe.play" %% "play-slick" % "5.0.0",
"com.typesafe.play" %% "play-slick-evolutions" % "5.0.0",
"org.xerial" % "sqlite-jdbc" % "3.23.1",
"org.specs2" %% "specs2-junit" % "4.3.4" % "test",
"org.specs2" %% "specs2-core" % "4.3.4" % "test",
"org.specs2" %% "specs2-mock" % "4.3.4" % "test"
)
libraryDependencies += filters
libraryDependencies += ws
libraryDependencies += guice
lazy val root = (project in file(".")).
enablePlugins(PlayScala, BuildInfoPlugin, LauncherJarPlugin, JDebPackaging, RpmPlugin).
settings(
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
buildInfoPackage := "models"
)
sources in (Compile, doc) := Seq.empty
enablePlugins(JavaServerAppPackaging)
enablePlugins(SystemdPlugin)
pipelineStages := Seq(digest, gzip)
serverLoading := Some(ServerLoader.Systemd)
systemdSuccessExitStatus in Debian += "143"
systemdSuccessExitStatus in Rpm += "143"
linuxPackageMappings += packageTemplateMapping(s"/var/lib/${packageName.value}")() withUser((daemonUser in Linux).value) withGroup((daemonGroup in Linux).value)