-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
28 lines (19 loc) · 877 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
name := "grisu-scala"
organization := "com.rojoma"
version := "1.0.0"
mimaPreviousArtifacts := Set(/* "com.rojoma" % ("grisu-scala_" + scalaBinaryVersion.value) % "1.0.0" */)
scalaVersion := "2.13.1"
crossScalaVersions := Seq("2.10.4", "2.11.6", "2.12.10", scalaVersion.value)
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.0.8" % "test"
)
scalacOptions ++= Seq("-deprecation", "-feature") ++ {
scalaVersion.value match {
case "2.12.10" | "2.13.1" => Seq("-opt:l:inline", "-opt-inline-from:**")
case "2.10.4" | "2.11.6" => Seq("-optimize")
}
}
testOptions in Test += Tests.Argument(TestFrameworks.ScalaTest, "-oD")
// Bit of a hack; regenerate README.markdown when version is changed
// to a non-SNAPSHOT value.
sourceGenerators in Compile += Def.task { READMEBuilder(baseDirectory.value, version.value, crossScalaVersions.value) }