Skip to content

Commit

Permalink
Scala3: build with LTS, test against LTS & latest
Browse files Browse the repository at this point in the history
  • Loading branch information
bjaglin committed Jul 29, 2024
1 parent 2b9d947 commit 025934a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import sbt._
object Dependencies {
val scala212 = sys.props.getOrElse("scala212.nightly", "2.12.19")
val scala213 = sys.props.getOrElse("scala213.nightly", "2.13.14")
val scala3 = sys.props.getOrElse("scala3.nightly", "3.4.2")
val scala3Latest = sys.props.getOrElse("scala3.nightly", "3.4.2")
val scala3LTS = "3.3.4-RC1"

val bijectionCoreV = "0.9.7"
val collectionCompatV = "2.12.0"
Expand Down
8 changes: 6 additions & 2 deletions project/ScalafixBuild.scala
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ object ScalafixBuild extends AutoPlugin with GhpagesKeys {
publish / skip := true
)
lazy val supportedScalaVersions = List(scala213, scala212)
lazy val buildScalaVersions = Seq(scala212, scala213, scala3)
lazy val buildScalaVersions = Seq(scala212, scala213, scala3LTS)
lazy val buildScalaVersionsWithTargets: Seq[(String, TargetAxis)] =
buildScalaVersions.map(sv => (sv, TargetAxis(sv))) ++
Seq(scala213, scala212).flatMap { sv =>
Expand All @@ -56,10 +56,14 @@ object ScalafixBuild extends AutoPlugin with GhpagesKeys {
}

val prevVersions = previousVersions(sv).map(prev => TargetAxis(prev))
val scala3FromScala2 = TargetAxis(scala3Latest)
val xsource3 = TargetAxis(sv, xsource3 = true)

(prevVersions :+ xsource3).map((sv, _))
} :+ (scala213, TargetAxis(scala3))
} ++ Seq(
(scala213, TargetAxis(scala3Latest)),
(scala213, TargetAxis(scala3LTS))
)

lazy val publishLocalTransitive =
taskKey[Unit]("Run publishLocal on this project and its dependencies")
Expand Down

0 comments on commit 025934a

Please sign in to comment.