/
build.sbt
86 lines (64 loc) · 3.04 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name := "RandomHaus"
version := "5.2.6"
isSnapshot := version.value.toLowerCase.contains("snapshot")
lazy val `randomhaus` = (project in file(".")).enablePlugins(PlayScala, DebianPlugin, SystemdPlugin, BuildInfoPlugin)
scalaVersion := "2.11.8"
resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/"
libraryDependencies ++= Seq(
evolutions,
jdbc,
cache,
ws,
"org.scalatestplus.play" %% "scalatestplus-play" % "1.5.0" % "test",
"org.pegdown" % "pegdown" % "1.4.2",
"com.google.api-client" % "google-api-client" % "1.20.0",
"com.google.api-client" % "google-api-client-java6" % "1.20.0",
"com.google.api-client" % "google-api-client-jackson2" % "1.20.0",
"com.google.oauth-client" % "google-oauth-client-jetty" % "1.11.0-beta",
"com.google.apis" % "google-api-services-youtube" % "v3-rev166-1.21.0",
"com.typesafe.play" %% "anorm" % "3.0.0-M1",
"org.webjars" %% "webjars-play" % "2.5.0",
"mysql" % "mysql-connector-java" % "5.1.46",
"com.adrianhurt" %% "play-bootstrap" % "1.0-P25-B3" exclude("org.webjars", "jquery"),
"org.webjars" % "bootstrap-sass" % "3.3.1-1",
"org.webjars" % "jquery" % "2.2.2",
"org.webjars.bower" % "lodash" % "4.11.1",
"org.webjars.bower" % "font-awesome-sass" % "4.6.2"
)
unmanagedResourceDirectories in Test <+= baseDirectory(_ / "target/web/public/test")
resolvers += "scalaz-bintray" at "https://dl.bintray.com/scalaz/releases"
resolveFromWebjarsNodeModulesDir := true
typingsFile := Some(baseDirectory.value / "app" / "assets" / "javascripts" / "typings" / "tsd.d.ts")
maintainer in Linux := "Logan Thompson <cobbleopolis@gmail.com>"
packageSummary in Linux := "RandomHaus server"
packageDescription := "A play server to run a RandomHaus instance"
//javaOptions in Test += "-Dconfig.file=conf/application.test.conf"
(testOptions in Test) += Tests.Argument(TestFrameworks.ScalaTest, "-h", "target/report")
//bashScriptExtraDefines += """addJava "-Dconfig.file=${app_home}/../conf/production.conf""""
javaOptions in Universal ++= Seq(
// JVM memory tuning
"-J-Xmx1024m",
"-J-Xms512m",
// Since play uses separate pidfile we have to provide it with a proper path
// name of the pid file must be play.pid
s"-Dpidfile.path=/var/run/${packageName.value}/${packageName.value}.pid",
// alternative, you can remove the PID file
// s"-Dpidfile.path=/dev/null",
// Use separate configuration file for production environment
s"-Dconfig.file=/usr/share/${packageName.value}/conf/production.conf",
// Use separate logger configuration file for production environment
s"-Dlogger.file=/usr/share/${packageName.value}/conf/production-logback.xml",
// You may also want to include this setting if you use play evolutions
"-DapplyEvolutions.default=true"
)
daemonUser := "randomhaus"
daemonGroup := "randomhaus"
val ignoredFiles: Seq[String] = Seq(
"client.json",
"client.json.enc"
)
mappings in(Compile, packageBin) ~= {
_.filterNot { case (_, s) =>
ignoredFiles.contains(s)
}
}