forked from lichess-org/scalachess
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
53 lines (41 loc) · 1.56 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
name := "scalachess"
organization := "org.lichess"
version := "8.6.25"
scalaVersion := "2.12.9"
crossScalaVersions := Seq("2.11.12", "2.12.9")
libraryDependencies ++= List(
"org.scala-lang.modules" %% "scala-parser-combinators" % "1.1.2",
"org.scalaz" %% "scalaz-core" % "7.2.28",
"org.specs2" %% "specs2-core" % "4.7.0" % "test",
"org.specs2" %% "specs2-scalaz" % "4.7.0" % "test",
"com.github.ornicar" %% "scalalib" % "6.7",
"joda-time" % "joda-time" % "2.10.3"
)
resolvers ++= Seq(
"lila-maven" at "https://raw.githubusercontent.com/ornicar/lila-maven/master",
"Scalaz Bintray Repo" at "http://dl.bintray.com/scalaz/releases"
)
scalacOptions ++= Seq(
"-deprecation", "-unchecked", "-feature", "-language:_",
"-Xfatal-warnings",
"-Ywarn-value-discard", "-Ywarn-dead-code",
// "-Ywarn-unused:-params,_",
"-Xlint:missing-interpolator",
"-Ydelambdafy:method", "-target:jvm-1.8"
)
scalacOptions := {
val old = scalacOptions.value
scalaBinaryVersion.value match {
case "2.11" => old filterNot (_ == "-Ywarn-unused:-params,_")
case _ => old
}
}
publishTo := Some(Resolver.file("file", new File(sys.props.getOrElse("publishTo", ""))))
import com.typesafe.sbt.SbtScalariform.ScalariformKeys
import scalariform.formatter.preferences._
val preferences =
ScalariformKeys.preferences := ScalariformKeys.preferences.value
.setPreference(DoubleIndentConstructorArguments, true)
.setPreference(DanglingCloseParenthesis, Force)
Seq(preferences)
excludeFilter in scalariformFormat := "FullOpeningPart*" || "EcopeningDB.scala" || "Fixtures.scala"