-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.sbt
99 lines (73 loc) · 2.75 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
87
88
89
90
91
92
93
94
95
96
97
98
99
import com.github.play2war.plugin._
name := "antarcticle-scala"
version := "2.8"
scalaVersion := "2.11.6"
lazy val root = (project in file(".")).enablePlugins(PlayScala)
resolvers ++= Seq(
"Scalaz Bintray Repo" at "https://dl.bintray.com/scalaz/releases",
"spray repo" at "http://repo.spray.io"
)
libraryDependencies ++= Seq(
cache,
ws,
"org.scala-lang.modules" %% "scala-async" % "0.9.3",
"com.typesafe.akka" %% "akka-actor" % "2.3.9",
"com.typesafe.slick" %% "slick" % "2.1.0",
"io.spray" %% "spray-client" % "1.3.3",
"org.webjars" %% "webjars-play" % "2.3.0-2",
"org.webjars" % "bootstrap" % "3.0.3",
"org.webjars" % "jquery" % "1.10.2",
// Joda time wrapper for scala
"com.github.nscala-time" %% "nscala-time" % "2.0.0",
"com.h2database" % "h2" % "1.4.187",
"org.mockito" % "mockito-all" % "1.9.5" % "test",
// markdown support
"org.pegdown" % "pegdown" % "1.5.0",
// scalaz magic
"org.scalaz" %% "scalaz-core" % "7.1.0",
"org.typelevel" %% "scalaz-specs2" % "0.4.0" % "test",
// production database
"mysql" % "mysql-connector-java" % "5.1.28",
"javax.mail" % "mail" % "1.5.0-b01",
"org.codehaus.janino" % "janino" % "2.7.8",
"com.netaporter" %% "pre-canned" % "0.0.6" % "test",
"org.specs2" %% "specs2-core" % "3.6" % "test",
"org.specs2" %% "specs2-mock" % "3.6" % "test",
"org.specs2" %% "specs2-junit" % "3.6" % "test",
"org.specs2" %% "specs2-matcher-extra" % "3.6" % "test",
"org.specs2" %% "specs2-analysis" % "3.6" % "test"
)
// global imports for templates
TwirlKeys.templateImports ++= Seq(
"security.Entities._",
"security.Permissions._",
"security.Authorities._",
"security.Principal"
)
// publish some SBT variables as scala object for application code
buildInfoSettings
sourceGenerators in Compile <+= buildInfo
buildInfoKeys := Seq[BuildInfoKey](version)
buildInfoKeys ++= Seq[BuildInfoKey](
BuildInfoKey.action("fullVersion") {
sys.props.getOrElse("app.version", (version in version.scope).value + "-dev")
}
)
buildInfoPackage := "build"
// Coffee Script compilation options
CoffeeScriptKeys.bare := true
includeFilter in (Assets, LessKeys.less) := "*.less"
scalacOptions ++= Seq("-feature", "-target:jvm-1.7")
scalacOptions in Test ++= Seq("-Yrangepos")
parallelExecution in Test := false
testOptions in Test += Tests.Argument("sequential")
// WAR packaging
Play2WarPlugin.play2WarSettings
Play2WarKeys.servletVersion := "3.0"
// disable publishing the main API jar
publishArtifact in (Compile, packageDoc) := false
// disable publishing the main sources jar
publishArtifact in (Compile, packageSrc) := false
net.virtualvoid.sbt.graph.Plugin.graphSettings
ScoverageSbtPlugin.ScoverageKeys.coverageExcludedPackages := "<empty>"
ScoverageSbtPlugin.ScoverageKeys.coverageHighlighting := true