Skip to content

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

Merged
tgodzik merged 3 commits into
scoverage:mainfrom
mkurz:sbt2cross-update
Nov 18, 2026
Merged

tgodzik merged 3 commits into
scoverage:mainfrom
mkurz:sbt2cross-update

Conversation

@mkurz

@mkurz mkurz commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

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.

Newer-JDK CI follow-up: update only the generic fixture consumer compiler; preserve all API-documentation or coverage-threshold assertions.

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 on Java 17.
  • sbt -batch "++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 on Java 17.
  • sbt -batch "+compile" "+test" "++2.12.21" "scripted" "++3.9.0" "scripted scoverage/cached-compile": passed on Java 17.
  • sbt -batch "scalafmtSbt" "scalafmtAll": passed on Java 25.
  • sbt -batch "++3.9.0" "set Compile / scalacOptions := (Compile / scalacOptions).value.filterNot(o => o.startsWith(\"-Wconf:\") || o.startsWith(\"-Wunused\") || o.startsWith(\"-Ywarn-unused\") || Set(\"-Werror\", \"-Xfatal-warnings\", \"-Wwarning\").contains(o)) ++ Seq(\"-rewrite\", \"-source\", \"3.8-migration\")" "clean" "compile": passed on Java 25.
  • sbt -batch "+compile" "+test" "++2.12.21" "scripted scoverage/scala3-bad" "++3.9.0" "scripted scoverage/scala3-bad": passed on Java 25.

References

@tgodzik tgodzik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@tgodzik
tgodzik merged commit 1555311 into scoverage:main Nov 18, 2026
5 checks passed
@mkurz
mkurz deleted the sbt2cross-update branch November 18, 2026 11:46
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