Skip to content

Update sbt to 2.0.0#568

Open
scala-steward-wvlet[bot] wants to merge 3 commits into
mainfrom
update/sbt-2.0.0
Open

Update sbt to 2.0.0#568
scala-steward-wvlet[bot] wants to merge 3 commits into
mainfrom
update/sbt-2.0.0

Conversation

@scala-steward-wvlet

Copy link
Copy Markdown
Contributor

About this PR

📦 Updates org.scala-sbt:sbt from 1.12.12 to 2.0.0

📜 GitHub Release Notes - Version Diff

Usage

Please merge!

I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.

If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.

Configure Scala Steward for your repository with a .scala-steward.conf file.

Have a fantastic day writing Scala!

⚙ Adjust future updates

Add this to your .scala-steward.conf file to ignore future updates of this dependency:

updates.ignore = [ { groupId = "org.scala-sbt", artifactId = "sbt" } ]

Or, add this to slow down future updates of this dependency:

dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.scala-sbt", artifactId = "sbt" }
}]
labels: library-update, early-semver-major, semver-spec-major, version-scheme:early-semver, commit-count:1

@xerial

xerial commented Jun 16, 2026

Copy link
Copy Markdown
Member

⚠️ Still blocked: Scala.js / portable-scala sbt-2 plugins not published yet

This is a major bump (1.x → 2.0.0). Two of the original blockers are now resolved on this branch, but CI stays red until the remaining upstream plugins ship sbt-2 (_sbt2_3) artifacts.

Plugin sbt-2 readiness (checked against Maven Central)

Ready at the currently-pinned version — no change needed:

  • org.scalameta:sbt-scalafmt 2.6.1
  • com.github.sbt:sbt-pgp 2.3.1
  • com.eed3si9n:sbt-buildinfo 0.13.1
  • org.scala-native:sbt-scala-native 0.5.12
  • com.github.sbt:sbt-dynver 5.1.1
  • org.jetbrains.scala:sbt-ide-settings 1.1.4

Resolved on this branch:

  • io.spray:sbt-revolver — was unused; removed (ffa29a6)
  • org.xerial.sbt:sbt-packbumped 0.23 → 1.0.0 (abab78c); 1.0.0 is published only for sbt 2 (_sbt2_3)

No sbt-2 release yet — the remaining blockers:

  • org.scala-js:sbt-scalajs (1.21.0) — no _sbt2_3 artifact on Maven Central. Lands in Scala.js 1.22, not yet released (sbt-2 PR merged, release pending).
  • org.portable-scala:sbt-scalajs-crossproject (1.3.2) — no _sbt2_3 artifact.
  • org.portable-scala:sbt-scala-native-crossproject (1.3.2) — no _sbt2_3 artifact.

Recommendation

Hold this PR until the upstream Scala.js / portable-scala plugins ship sbt-2 artifacts. Remaining migration steps once they're available:

  1. Bump sbt-scalajs to 1.22 (Scala.js 1.22 release)
  2. Bump sbt-scalajs-crossproject / sbt-scala-native-crossproject to the sbt-2 release from sbt 2 portable-scala/sbt-crossproject#178
  3. Then keep sbt.version at 2.0.0 and confirm CI is green

Drop the unused sbt-revolver plugin ✅ done · Find an sbt-2 release for sbt-pack ✅ done (1.0.0)

xerial and others added 2 commits June 16, 2026 18:30
sbt-revolver was only declared in project/plugin.sbt and is not used
anywhere in the build (no reStart/reStop tasks referenced). Dropping it
also removes one plugin that would need an sbt-2-compatible release for
the in-progress sbt 2.0.0 migration.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
sbt-pack 1.0.0 is published only for sbt 2 (_sbt2_3), matching the
sbt 2.0.0 bump on this branch. Older 0.23 is sbt 1.x only.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants