Skip to content

Commit c12fabd

Browse files
committed
Add dotty build settings
1 parent 2d01ed7 commit c12fabd

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

build.sbt

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,19 @@ developers := List(
2323
)
2424
)
2525

26-
crossScalaVersions := List("2.10.7", "2.11.12", "2.12.10", "2.13.1")
26+
crossScalaVersions := List(
27+
"2.10.7", "2.11.12", "2.12.10", "2.13.1",
28+
"0.22.0", "0.23.0", "0.24.0-RC1"
29+
)
30+
31+
/** Add src/main/scala-{2|3} to Compile / unmanagedSourceDirectories */
32+
Compile / unmanagedSourceDirectories ++= {
33+
val sourceDir = (Compile / sourceDirectory).value
34+
CrossVersion.partialVersion(scalaVersion.value).map {
35+
case (0 | 3, _) => sourceDir / "scala-3"
36+
case (n, _) => sourceDir / s"scala-$n"
37+
}
38+
}
2739

2840
libraryDependencies ++= Seq(
2941
"org.scalatest" %% "scalatest-core" % "3.2.0-M4",

project/plugins.sbt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.1")
33
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.2.2")
44

55
addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % "0.9.4")
6+
7+
addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.4.1")

0 commit comments

Comments
 (0)