Skip to content

Commit

Permalink
enable sbt 2.x build
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Oct 6, 2024
1 parent c39f455 commit 4697205
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: sbt -v "++2.12.x" test scripted
- if: ${{ matrix.jobtype == 3 }}
shell: bash
run: sbt -v "++3.x" library/test
run: sbt -v "++3.x" test # TODO scripted
- if: ${{ matrix.jobtype == 4 }}
shell: bash
run: sbt -v "++2.12.x" scalafmtSbtCheck scalafmtCheckAll
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ lazy val plugin = (project in file("plugin"))
scriptedLaunchOpts.value ++
Seq("-Xmx1024M", "-Dplugin.version=" + version.value)
},
crossScalaVersions := Seq(scala212),
crossScalaVersions := Seq(scala212, scala3),
pluginCrossBuild / sbtVersion := {
scalaBinaryVersion.value match {
case "2.13" => "1.2.8"
case "2.12" => "1.2.8" // set minimum sbt version
case _ => "1.2.8"
case _ => "2.0.0-M2"
}
},
publishLocal := (publishLocal dependsOn (library / publishLocal)).value,
Expand Down
2 changes: 1 addition & 1 deletion plugin/src/main/scala/ContrabandPlugin.scala
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package sbt.contraband

import sbt.Keys._
import sbt._
import sbt.{ given, _ }
import sbt.contraband.ast._
import sbt.contraband.parser.{ JsonParser, SchemaParser }

Expand Down
2 changes: 1 addition & 1 deletion plugin/src/main/scala/JsonCodecPlugin.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package sbt.contraband

import sbt._
import sbt.{ given, _ }
import Keys._

object JsonCodecPlugin extends AutoPlugin {
Expand Down

0 comments on commit 4697205

Please sign in to comment.