-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
41 lines (26 loc) · 841 Bytes
/
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
name := "shenzhen"
version := "0.1.0-SNAPSHOT"
scalaVersion := "2.11.8"
libraryDependencies ++= {
object Versions {
val parserCombinators = "1.0.5"
val scalatest = "3.0.0"
}
Seq(
// prod
"org.scala-lang.modules" %% "scala-parser-combinators" % Versions.parserCombinators,
// test
"org.scalatest" %% "scalatest" % Versions.scalatest % "test"
).map(_ withSources() withJavadoc())
}
scalacOptions ++= Seq(
"-Xfatal-warnings",
"-feature",
"-deprecation",
"-language:postfixOps"
)
lazy val root = project in file(".")
// scalastyle check on compile
lazy val compileScalastyle = taskKey[Unit]("compileScalastyle")
compileScalastyle := org.scalastyle.sbt.ScalastylePlugin.scalastyle.in(Compile).toTask("").value
(compile in Compile) := ((compile in Compile) dependsOn compileScalastyle).value