Skip to content

Build sbt 2 plugin with Scala 3.9 LTS and sbt 2.1 - #322

Merged
mkurz merged 1 commit into
sbt:mainfrom
mkurz:sbt2cross-update
Nov 18, 2026
Merged

mkurz merged 1 commit into
sbt:mainfrom
mkurz:sbt2cross-update

Conversation

@mkurz

@mkurz mkurz commented Nov 17, 2026

Copy link
Copy Markdown
Member

Summary

  • Build the sbt 2 plugin lane with Scala 3.9.0 LTS and declare sbt 2.1.0 as its minimum.
  • Make compiler and plugin sbt compatibility versions explicit; retain the sbt 1 lane and unrelated library baselines.
  • Align relevant CI/scripted settings, preserve Java 17 publishing, and check Dependabot. No Scala Steward pins are added.

The Scala 3.9-built plugin requires sbt 2.1 or newer; the sbt 1 artifact remains separately cross-built.

Verification

  • sbt -batch "scalafmtSbt" "scalafmtAll": passed.
  • sbt -batch "project plugin" "++3.9.0" "set Compile / scalacOptions := (Compile / scalacOptions).value.filterNot(o => o.startsWith(\"-Wconf:\") || Set(\"-Werror\", \"-Xfatal-warnings\", \"-Wwarning\").contains(o)) ++ Seq(\"-rewrite\", \"-source\", \"3.8-migration\")" "clean" "compile": passed.
  • sbt -batch "project plugin" "+compile" "+test" "++2.12.21" "scripted sbt-java-formatter/*" "++3.9.0" "scripted sbt-java-formatter/* java-runtime/compatible-17 java-runtime/incompatible-21-on-java-17": failed; see follow-up verification.
  • sbt -batch "scalafmtSbt" "scalafmtAll": passed.
  • sbt -batch "project plugin" "++3.9.0" "set Compile / scalacOptions := (Compile / scalacOptions).value.filterNot(o => o.startsWith(\"-Wconf:\") || Set(\"-Werror\", \"-Xfatal-warnings\", \"-Wwarning\").contains(o)) ++ Seq(\"-rewrite\", \"-source\", \"3.8-migration\")" "clean" "compile": passed.
  • sbt -batch "project plugin" "+compile" "+test" "++2.12.21" "scripted sbt-java-formatter/*" "++3.9.0" "scripted sbt-java-formatter/* java-runtime/compatible-17 java-runtime/incompatible-21-on-java-17": passed.

References

@eed3si9n eed3si9n left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@mkurz
mkurz merged commit b002537 into sbt:main Nov 18, 2026
5 checks passed
@mkurz
mkurz deleted the sbt2cross-update branch November 18, 2026 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants