-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
66 lines (49 loc) · 1.68 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
name := "IDC"
version := "1.0"
lazy val `idc` = (project in file(".")).enablePlugins(PlayScala)
scalaVersion := "2.11.8"
resolvers += "scalaz-bintray" at "https://dl.bintray.com/scalaz/releases"
resolvers += Resolver.url("scoverage-bintray", url("https://dl.bintray.com/sksamuel/sbt-plugins/"))(Resolver.ivyStylePatterns)
scalacOptions in Test ++= Seq("-Yrangepos")
coverageEnabled := true
coverageMinimum := 80
coverageFailOnMinimum := true
lazy val compileScalastyle = taskKey[Unit]("compileScalastyle")
compileScalastyle := org.scalastyle.sbt.ScalastylePlugin.scalastyle.in(Compile).toTask("").value
(compile in Compile) <<= (compile in Compile) dependsOn compileScalastyle
libraryDependencies ++= {
Seq(
"com.trueaccord.scalapb" %% "scalapb-runtime" % "0.4.20",
"org.scodec" %% "scodec-core" % "1.10.2",
"com.wix" % "accord-core_2.11" % "0.5",
"org.specs2" %% "specs2-core" % "3.8.4" % "test",
"org.specs2" %% "specs2-scalacheck" % "3.8.4" % "test",
"org.specs2" %% "specs2-junit" % "3.8.4" % "test"
)
}
unmanagedResourceDirectories in Test <+= baseDirectory ( _ /"target/web/public/test" )
coverageExcludedPackages :=
"""<empty>;
|connectors.*;
|controllers.javascript.*;
|router.*;
|views.*;
|utility.Log.*
|utility.CustomBodyParser""".stripMargin
scalacOptions ++= Seq(
"-feature",
"-deprecation",
"-unchecked",
"-language:postfixOps",
"-language:reflectiveCalls",
"-language:implicitConversions",
"-Xlint",
"-Xelide-below",
"MINIMUM"
// "-encoding", "UTF-8", // yes, this is 2 args
// "-Xfatal-warnings",
// "-Yno-adapted-args",
// "-Ywarn-dead-code", // N.B. doesn't work well with the ??? hole
// "-Ywarn-value-discard",
// "-Xfuture"
)