Skip to content

Commit

Permalink
Use -Xsource:3 for Scala 2 scripted tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
zainab-ali authored and majk-p committed Aug 28, 2024
1 parent 2c99d67 commit 0b4d86f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import snapshot4s.BuildInfo.snapshot4sVersion
lazy val root = (project in file("."))
.settings(
scalaVersion := "3.3.1",
scalacOptions += "-Xsource:3",
crossScalaVersions := Seq("3.3.1", "2.12.19", "2.13.14"),
libraryDependencies ++= Seq(
"com.siriusxm" %% "snapshot4s-weaver" % snapshot4sVersion % Test,
Expand Down
1 change: 1 addition & 0 deletions modules/plugin/src/sbt-test/sbt-snapshot4s/munit/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ lazy val root = (project in file("."))
.settings(
scalaVersion := "3.3.1",
crossScalaVersions := Seq("3.3.1", "2.12.19", "2.13.14"),
scalacOptions += "-Xsource:3",
libraryDependencies += "com.siriusxm" %% "snapshot4s-munit" % snapshot4sVersion % Test
)
.enablePlugins(Snapshot4sPlugin)
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ lazy val scalaVersions = Seq(scala3Version, scala213Version, scala212Version)

lazy val core = (projectMatrix in file("core"))
.settings(
scalacOptions += "-Xsource:3",
libraryDependencies += "com.siriusxm" %%% "snapshot4s-weaver" % snapshot4sVersion % Test
)
.jvmPlatform(scalaVersions = scalaVersions)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import snapshot4s.BuildInfo.snapshot4sVersion
lazy val root = (project in file("."))
.settings(
scalaVersion := "3.3.1",
scalacOptions += "-Xsource:3",
crossScalaVersions := Seq("3.3.1", "2.12.19", "2.13.14"),
libraryDependencies ++= Seq(
"com.siriusxm" %% "snapshot4s-scalatest" % snapshot4sVersion % Test,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import snapshot4s.BuildInfo.snapshot4sVersion
lazy val root = (project in file("."))
.settings(
scalaVersion := "3.3.1",
scalacOptions += "-Xsource:3",
crossScalaVersions := Seq("3.3.1", "2.12.19", "2.13.14"),
libraryDependencies += "com.siriusxm" %% "snapshot4s-weaver" % snapshot4sVersion % Test
)
Expand Down

0 comments on commit 0b4d86f

Please sign in to comment.