forked from sbrunk/play-silhouette-slick-seed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
58 lines (45 loc) · 2.25 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
import scalariform.formatter.preferences._
name := "play-silhouette-slick-seed"
version := "3.0.1"
scalaVersion := "2.11.7"
resolvers := ("Atlassian Releases" at "https://maven.atlassian.com/public/") +: resolvers.value
resolvers += "scalaz-bintray" at "https://dl.bintray.com/scalaz/releases"
resolvers += Resolver.sonatypeRepo("snapshots")
libraryDependencies ++= Seq(
"com.mohiva" % "play-silhouette_2.11" % "4.0.0-BETA2",
"com.mohiva" % "play-silhouette-persistence_2.11" % "4.0.0-BETA2",
"com.mohiva" % "play-silhouette-password-bcrypt_2.11" % "4.0.0-BETA2",
"org.webjars" %% "webjars-play" % "2.5.0",
"net.codingwell" %% "scala-guice" % "4.0.0",
"net.ceedubs" %% "ficus" % "1.1.2",
"com.typesafe.play" % "play-slick_2.11" % "2.0.0",
"com.typesafe.play" % "play-slick-evolutions_2.11" % "2.0.0",
"mysql" % "mysql-connector-java" % "5.1.38",
cache,
evolutions,
filters,
"com.mohiva" % "play-silhouette-testkit_2.11" % "4.0.0-BETA2" % Test,
specs2 % Test
)
lazy val root = (project in file(".")).enablePlugins(PlayScala)
routesGenerator := InjectedRoutesGenerator
scalacOptions ++= Seq(
"-deprecation", // Emit warning and location for usages of deprecated APIs.
"-feature", // Emit warning and location for usages of features that should be imported explicitly.
"-unchecked", // Enable additional warnings where generated code depends on assumptions.
"-Xfatal-warnings", // Fail the compilation if there are any warnings.
"-Xlint", // Enable recommended additional warnings.
"-Ywarn-adapted-args", // Warn if an argument list is modified to match the receiver.
"-Ywarn-dead-code", // Warn when dead code is identified.
"-Ywarn-inaccessible", // Warn about inaccessible types in method signatures.
"-Ywarn-nullary-override", // Warn when non-nullary overrides nullary, e.g. def foo() over def foo.
"-Ywarn-numeric-widen" // Warn when numerics are widened.
)
//********************************************************
// Scalariform settings
//********************************************************
defaultScalariformSettings
ScalariformKeys.preferences := ScalariformKeys.preferences.value
.setPreference(FormatXml, false)
.setPreference(DoubleIndentClassDeclaration, false)
.setPreference(PreserveDanglingCloseParenthesis, true)