-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.sbt
61 lines (47 loc) · 2.35 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
import com.typesafe.sbt.SbtScalariform._
import scalariform.formatter.preferences._
name := """controlcenter"""
organization := "com.yetu"
scalaVersion := "2.11.5"
//needed for dependencies of silhouette: see https://github.com/mohiva/play-silhouette-seed/issues/20 for details:
resolvers := ("Atlassian Releases" at "https://maven.atlassian.com/public/") +: resolvers.value
resolvers += Resolver.bintrayRepo("yetu", "maven")
pipelineStages := Seq(digest, gzip)
lazy val root = (project in file(".")).enablePlugins(PlayScala, SbtWeb)
libraryDependencies ++= Seq(
"com.yetu" %% "yetu-play-authenticator" % "0.1.16",
cache,
ws,
filters
)
// test libraries
libraryDependencies ++= Seq(
"com.yetu" %% "yetu-play-common-views" % "0.0.2",
"com.mohiva" %% "play-silhouette-testkit" % "2.0-RC1" % "test",
"org.scalatest" %% "scalatest" % "2.2.1" % "test",
"org.scalatestplus" %% "play" % "1.2.0" % "test"
)
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.
"-language:implicitConversions" //allow implicit convertions defined by implicit def convertAtoB(a:A):B type functions
)
javaOptions in Test += "-Dconfig.file=conf/application-test.conf"
//********************************************************
// Scalariform settings
//********************************************************
scalariformSettings
defaultScalariformSettings
ScalariformKeys.preferences := ScalariformKeys.preferences.value
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(DoubleIndentClassDeclaration, true)
.setPreference(PreserveDanglingCloseParenthesis, true)
.setPreference(PreserveSpaceBeforeArguments, true)