-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.sbt
52 lines (51 loc) · 1.53 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
import Util._
lazy val spells =
project
.in(file("."))
.settings(
name := "spells",
organization := "com.github.agilesteel",
version := "2.2.2",
scalaVersion := "2.13.3",
homepage := Some(url("https://agilesteel.github.io/spells/")),
startYear := some(2012),
description := """This is a small scala "util" library, which will hopefully grow over time.""",
licenses := Seq(
"Apache 2" -> url("http://www.apache.org/licenses/LICENSE-2.0")
),
initialCommands in console :=
s"""|object user extends spells.Spells
|import user._
|import scala.concurrent.duration._""".stripMargin,
libraryDependencies ++= Dependencies(scalaVersion.value.toString),
Compile / scalacOptions ++= {
Seq(
"-deprecation",
"-feature",
"-language:_",
"-unchecked"
) ++ {
if (`isScalaVersionSmallerThan 2.12`(SemVer(scalaVersion.value)))
Seq.empty
else
Seq(
"-Ywarn-unused:_",
"-Xfatal-warnings"
)
}
},
Test / scalacOptions --= Seq(
"-Ywarn-unused:_",
"-Xfatal-warnings"
),
Compile / doc / scalacOptions --= Seq(
"-Ywarn-unused:_",
"-Xfatal-warnings"
),
Compile / console / scalacOptions --= Seq(
"-Ywarn-unused:_",
"-Xfatal-warnings"
),
Test / console / scalacOptions :=
(Compile / console / scalacOptions).value
)