-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
38 lines (30 loc) · 983 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
name := "mini-monoid"
version := "0.1"
scalaVersion := "2.12.7"
val specs2Version = "4.3.4"
val specs2Deps = Seq(
"org.specs2" %% "specs2-core" % specs2Version % "test",
"org.specs2" %% "specs2-scalacheck" % specs2Version % "test",
)
libraryDependencies ++= specs2Deps
// http://tpolecat.github.io/2014/04/11/scalac-flags.html
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-language:existentials",
"-language:higherKinds",
"-language:implicitConversions",
"-unchecked",
"-Xfatal-warnings",
"-Xlint",
"-Yno-adapted-args",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-Xfuture"
)
scalacOptions in Test ++= Seq("-Yrangepos")
// Docs on each type of check is in the WartRemover README: https://github.com/puffnfresh/wartremover
wartremoverErrors in (Compile, compile) ++= Warts.allBut(Wart.Overloading, Wart.PublicInference)
resolvers ++= Seq("snapshots", "releases").map(Resolver.sonatypeRepo)