Skip to content

Commit

Permalink
chore: prepare sbt 2.x cross-build (#1642)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugo-vrijswijk authored Oct 10, 2024
1 parent 06f104f commit 6a696db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ lazy val sbtPlugin = (projectMatrix in file("modules") / "sbt")
.defaultAxes(VirtualAxis.scalaPartialVersion("2.12"), VirtualAxis.jvm)
.settings(commonSettings, sbtPluginSettings, publishLocalDependsOn(core))
.dependsOn(core)
.jvmPlatform(scalaVersions = Seq(versions.scala212))
.jvmPlatform(scalaVersions = Seq(versions.scala212 /* , versions.scala3 */ ))

lazy val sbtTestRunner = (projectMatrix in file("modules") / "sbtTestRunner")
.settings(commonSettings, sbtTestRunnerSettings, publishLocalDependsOn(testRunnerApi))
Expand Down
6 changes: 6 additions & 0 deletions project/Settings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ object Settings {
scriptedLaunchOpts.value ++
Seq("-Xmx1024M", "-Dplugin.version=" + version.value)
},
(pluginCrossBuild / sbtVersion) := {
scalaBinaryVersion.value match {
case "2.12" => "1.7.0"
case _ => "2.0.0-M2"
}
},
scriptedBufferLog := false
)

Expand Down

0 comments on commit 6a696db

Please sign in to comment.