Skip to content

Commit

Permalink
sbt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Oct 24, 2024
1 parent 717e81f commit 3eef968
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,14 @@ jobs:
sbt -v scalafmtSbtCheck "+ scalafmtCheckAll" "+compile" "+test"
;;
"scripted")
sbt -v "+ publishLocal" "+ sbt-plugin/scripted"
case ${{ matrix.os }} in
"windows-latest")
sbt -v "+ publishLocal" "sbt-plugin/scripted"
;;
*)
sbt -v "+ publishLocal" "+ sbt-plugin/scripted"
;;
esac
;;
"test")
sbt -v test '++ 3.3.4!' coreBinary/test
Expand Down
10 changes: 9 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,14 @@ lazy val sbtPlug: Project = Project(
commonSettings,
sbtPlugin := true,
scriptedBatchExecution := false,
pluginCrossBuild / sbtVersion := {
scalaBinaryVersion.value match {
case "2.12" =>
sbtVersion.value
case _ =>
"2.0.0-M2"
}
},
name := "sbt-wartremover-contrib",
scriptedBufferLog := false,
scriptedLaunchOpts ++= {
Expand All @@ -166,7 +174,7 @@ lazy val sbtPlug: Project = Project(
javaVmArgs.filter(a => Seq("-Xmx", "-Xms", "-XX", "-Dsbt.log.noformat").exists(a.startsWith))
},
scriptedLaunchOpts += ("-Dplugin.version=" + version.value),
crossScalaVersions := Seq(scala212Latest),
crossScalaVersions := Seq(scala212Latest, scala3Latest),
addSbtPlugin("org.wartremover" %% "sbt-wartremover" % wartremoverVersion),
(Compile / sourceGenerators) += Def.task {
val base = (Compile / sourceManaged).value
Expand Down

0 comments on commit 3eef968

Please sign in to comment.