Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Default scala used for day-to-day dev / IDE
val devScala = "3.6.4"
val devScala = "3.4.1"

// During IntelliJ import (VM option -DIDEA_IMPORT=1), expose only Scala 3 to the IDE.
// From the CLI (no IDEA_IMPORT prop), keep the full cross set for + / ++.
Expand All @@ -8,7 +8,7 @@ ThisBuild / crossScalaVersions := {
if (sys.props.get("IDEA_IMPORT").contains("1"))
Seq(devScala)
else {
Seq(devScala, "3.4.1", "2.11.12", "2.12.20", "2.13.14")
Seq(devScala, "3.6.4", "2.11.12", "2.12.20", "2.13.14")
}
}

Expand Down Expand Up @@ -52,6 +52,10 @@ lazy val commonScalaSettings = Seq(
scalaVersion := (ThisBuild / scalaVersion).value,
crossScalaVersions := (ThisBuild / crossScalaVersions).value,

// Scala 3 versions share the same _3 artifact coordinates. Test all versions,
// but publish only the baseline compiler's artifacts for consumer compatibility.
publish / skip := scalaBinaryVersion.value == "3" && scalaVersion.value != devScala,

// Version-specific support directories
Compile / unmanagedSourceDirectories ++= {
val base = (Compile / sourceDirectory).value
Expand Down
Loading