This repository has been archived by the owner on Apr 13, 2019. It is now read-only.
forked from fooblahblah/rearview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
65 lines (50 loc) · 2.55 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
53
54
55
56
57
58
59
60
61
62
63
64
65
import com.typesafe.sbt.SbtNativePackager._
import com.typesafe.sbt.packager.debian.Keys.{name => _, version => _, _}
import com.typesafe.sbt.packager.linux.LinuxPackageMapping
name := "rearview"
version := "2.1.0"
scalaVersion := "2.11.4"
maintainer in Debian:= "Jeff Simpson <[email protected]>"
packageSummary := "Monitoring framework for Graphite metrics"
packageDescription in Debian:= "Monitoring framework for Graphite metrics"
parallelExecution in Test := false
unmanagedResourceDirectories in Assets += baseDirectory.value / "public2"
unmanagedResourceDirectories in Compile += new File("src/main/resources")
unmanagedSourceDirectories in Compile += new File("src/main/resources")
libraryDependencies ++= Seq(
"commons-io" % "commons-io" % "2.4",
"com.typesafe.slick" %% "slick" % "2.1.0",
"com.typesafe.akka" %% "akka-agent" % "2.3.8",
"com.typesafe.akka" %% "akka-cluster" % "2.3.8",
"com.typesafe.play.plugins" %% "play-statsd" % "2.3.0",
"commons-validator" % "commons-validator" % "1.4.0",
"javolution" % "javolution" % "5.5.1",
"mysql" % "mysql-connector-java" % "5.1.21",
"org.apache.commons" % "commons-email" % "1.2",
"org.apache.commons" % "commons-math" % "2.2",
"com.typesafe.play" %% "play" % "2.3.7",
"com.typesafe.play" %% "play-jdbc" % "2.3.7",
"com.typesafe.play" %% "play-ws" % "2.3.7",
"org.quartz-scheduler" % "quartz" % "2.2.1"
)
lazy val root = (project in file(".")).enablePlugins(PlayScala)
linuxPackageMappings in Debian <+= (baseDirectory) map { bd =>
(packageMapping(
(bd / "scripts/start") -> "/opt/rearview/start")
withUser "app" withGroup "devel" withPerms "0755")
}
linuxPackageMappings in Debian <+= (baseDirectory) map { bd =>
(packageMapping(
(bd / "scripts/rearview.conf") -> "/etc/init/rearview.conf")
withUser "root" withGroup "root" withPerms "0644")
}
linuxPackageMappings <+= (baseDirectory) map { bd =>
val src = bd / "target/staged"
val dest = "/opt/rearview/lib"
LinuxPackageMapping(
for {
path <- (src ***).get
if !path.isDirectory
} yield path -> path.toString.replaceFirst(src.toString, dest)
) withUser "app" withGroup "devel" withPerms "0644"
}