Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sbt 2 #549

Merged
merged 1 commit into from
Oct 24, 2024
Merged

sbt 2 #549

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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