-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
56 lines (45 loc) · 2.02 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
name := """Tuniboard"""
version := "0.1.4"
scalaVersion := "2.11.7"
lazy val root = (project in file(".")).enablePlugins(PlayScala)
libraryDependencies ++= Seq(
filters,ws,
cache,
// WebJars (i.e. client-side) dependencies
"org.webjars" % "requirejs" % "2.1.20",
"org.webjars" % "underscorejs" % "1.8.3",
"org.webjars" % "jquery" % "3.0.0",
"org.webjars" % "bootstrap" % "3.3.7" exclude("org.webjars", "jquery"),
"org.webjars" % "angularjs" % "1.4.7" exclude("org.webjars", "jquery"),
"org.webjars" % "angular-ui-bootstrap" % "0.14.0" exclude("org.webjars", "jquery"),
"org.webjars" % "ng-table" % "0.3.3" exclude("org.webjars", "angularjs"),
"org.scala-lang.modules" %% "scala-async" % "0.9.5",
"joda-time" % "joda-time" % "2.8.2",
// Database
"com.typesafe.play" %% "play-slick" % "0.8.1",
"mysql" % "mysql-connector-java" % "5.1.37",
// test
"org.scalatest" %% "scalatest" % "2.2.5" % "test",
"com.h2database" % "h2" % "1.4.190" % "test"
)
scalacOptions ++= Seq(
"-target:jvm-1.8",
"-encoding", "UTF-8",
"-deprecation", // warning and location for usages of deprecated APIs
"-feature", // warning and location for usages of features that should be imported explicitly
"-unchecked", // additional warnings where generated code depends on assumptions
"-Xlint", // recommended additional warnings
"-Ywarn-adapted-args", // Warn if an argument list is modified to match the receiver
"-Ywarn-inaccessible",
"-Ywarn-dead-code"
)
// Configure the steps of the asset pipeline (used in stage and dist tasks)
// rjs = RequireJS, uglifies, shrinks to one file, replaces WebJars with CDN
// digest = Adds hash to filename
// gzip = Zips all assets, Asset controller serves them automatically when client accepts them
pipelineStages := Seq(rjs, digest, gzip)
// RequireJS with sbt-rjs (https://github.com/sbt/sbt-rjs#sbt-rjs)
RjsKeys.paths += ("jsRoutes" -> ("/jsroutes" -> "empty:"))
includeFilter in (Assets, LessKeys.less) := "*.less"
excludeFilter in (Assets, LessKeys.less) := "_*.less"
fork in run := true