Skip to content

Commit ddd0a3f

Browse files
committed
Setup cross build for sbt 2.0.0-M3.
1 parent 2259114 commit ddd0a3f

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

sbt-plugin/build.sbt

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,22 @@ inThisBuild(
2121
)
2222
)
2323

24+
val scala2 = "2.12.20"
25+
val scala3 = "3.6.3"
26+
2427
val `sbt-github-dependency-submission` = project
2528
.in(file("."))
2629
.enablePlugins(SbtPlugin, ContrabandPlugin, JsonCodecPlugin, BuildInfoPlugin)
2730
.settings(
2831
name := "sbt-github-dependency-submission",
29-
sbtVersion := "1.5.8",
30-
scalaVersion := "2.12.20",
32+
pluginCrossBuild / sbtVersion := {
33+
scalaBinaryVersion.value match {
34+
case "2.12" => "1.5.8"
35+
case _ => "2.0.0-M3"
36+
}
37+
},
38+
scalaVersion := scala2,
39+
crossScalaVersions := Seq(scala2, scala3),
3140
scalacOptions ++= Seq(
3241
"-deprecation",
3342
"-encoding",

0 commit comments

Comments
 (0)