sbt 2.0.2
The headline features of sbt 2.0.2 are:
- Metabuild resolution fix
- Build pipelining fix
- Remote cache timeout fix
- sbtn stdout replaying fix
See also sbt 2.0 change summary for the details.
Hi everyone. On behalf of the sbt project, I am happy to announce sbt 2.0.2. sbt 2.0 is a new major series of sbt, based on Scala 3 constructs and Bazel-compatible cache system. sbt 2.x is released under Semantic Versioning, and the plugins are expected to work throughout the 2.x series. Please try it out, and report any issues you might come across.
How to upgrade
The sbt version used for your build is upgraded by putting the following in project/build.properties:
sbt.version=2.0.2
This mechanism allows that sbt 2.0.2 is used only for the builds that you want.
Download the official sbt runner from SDKMAN, or download from https://github.com/sbt/sbt/releases/tag/v2.0.2 to upgrade the sbt shell script, sbtn, and the launcher.
🐛 Bug fixes
- fix: Fixes metabuild dependency downgrade via plugin by @anatoliykmetyuk in #9426
- fix: Fixes build pipelining by @anatoliykmetyuk in #9425
- fix: Fixes remote cache ByteStream timeout by @yhefamly in #9413
- fix: Fixes sbtn stdout relaying by @BrianHotopp in #9411 / #9414
- fix: Fixes auto import of givens by @xuwei-k in #9409
- fix: Fixes
shutdownallin sbt runner by @eed3si9n in #9435 - fix: Fixes attribute string in
pom.xmlto be deterministic @raboof in ivy#51 - fix: Fixes ivyless publishing of sbt plugins by @anatoliykmetyuk in #9416
Updates
- Deprecate
url(...)andResolver.url(...)in favor ofuri(...)by @eed3si9n in #9420 - Tweak server startup message by @eed3si9n in #9429
- ipcsocket 1.8.0 by @eed3si9n in #9436
Participation
sbt 2.0.2 is brought to you by 6 contributors. Eugene Yokota (eed3si9n), Anatolii Kmetiuk, BrianHotopp, Arnout Engelen, Kenji Yoshida (xuwei-k), Yannick Heiber. Thanks!
Thanks to everyone who’s helped improve sbt and Zinc by using them, reporting bugs, improving our documentation, porting builds, porting plugins, and submitting and reviewing pull requests.
For anyone interested in helping sbt, there are many avenues for you to help, depending on your interest. If you’re interested, Contributing, “help wanted”, “good first issue”, and Discussions are good starting points.
FYI - Scala Days talk
I gave a talk in Scala Days 2025 about sbt 2.0 (recording, slide deck).
Donate to Scala Center
Scala Center is a non-profit center at EPFL to support education and open source.