Skip to content

Commit 9edf691

Browse files
committed
set crossScalaVersions on root project
this fixes an annoyance where you couldn't do e.g. `++3<TAB>` on startup
1 parent 722626e commit 9edf691

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

build.sbt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
ThisBuild / licenses += (("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0")))
22
ThisBuild / startYear := Some(2004)
33

4-
// I thought we could declare these in `ThisBuild` scope but no :-/
54
val commonSettings = Seq(
65
versionScheme := Some("early-semver"),
76
// next version will bump minor (because we dropped Scala 2.11 and upgraded
87
// Scala.js and Scala Native); we could go back to BinaryAndSourceCompatible
98
// once that's done
109
versionPolicyIntention := Compatibility.BinaryCompatible,
10+
crossScalaVersions := Seq("2.13.10", "2.12.17", "3.2.2"),
11+
scalaVersion := crossScalaVersions.value.head,
1112
)
1213

1314
lazy val root = project.in(file("."))
@@ -25,9 +26,6 @@ lazy val parserCombinators = crossProject(JVMPlatform, JSPlatform, NativePlatfor
2526
name := "scala-parser-combinators",
2627
scalaModuleAutomaticModuleName := Some("scala.util.parsing"),
2728

28-
crossScalaVersions := Seq("2.13.10", "2.12.17", "3.2.2"),
29-
scalaVersion := crossScalaVersions.value.head,
30-
3129
libraryDependencies += "junit" % "junit" % "4.13.2" % Test,
3230
libraryDependencies += "com.github.sbt" % "junit-interface" % "0.13.3" % Test,
3331

0 commit comments

Comments
 (0)