diff --git a/build.sbt b/build.sbt index 223b4bb8..c2a75c47 100644 --- a/build.sbt +++ b/build.sbt @@ -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 + / ++. @@ -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") } } @@ -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