forked from j-mie6/parsley
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
52 lines (45 loc) · 1.31 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
val projectName = "parsley"
inThisBuild(List(
organization := "parsley",
homepage := Some(url("https://github.com/J-mie6/parsley")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"J-mie6",
"Jamie Willis",
url("https://github.com/J-mie6")
)
)
))
val scala212Version = "2.12.12"
val scala213Version = "2.13.3"
val scala3Version = "0.27.0-RC1"
Global / onChangedBuildSource := ReloadOnSourceChanges
lazy val root = project.in(file("."))
.settings(
name := projectName,
libraryDependencies ++= Seq(
"org.scalactic" %% "scalactic" % "3.2.2" % Test,
"org.scalatest" %% "scalatest" % "3.2.2" % Test
),
scalaVersion := scala213Version,
crossScalaVersions := List(scala212Version, scala213Version, scala3Version),
scalacOptions ++= Seq("-deprecation", "-unchecked", "-feature"),
scalacOptions ++= {
if (isDotty.value)
Seq(
"-source:3.0-migration"
)
else Seq.empty
},
// Trick from sbt-spiewak: disable dottydoc, which is struggling
// with our package object.
Compile / doc / sources := {
val old = (Compile / doc / sources).value
if (isDotty.value)
Seq()
else
old
}
)