sbt 2.0.1
The headline features of sbt 2.0.1 are:
- Incremental test performance improvement
- sbt runner fixes
- Global plugin loading fix
- Coursier 2.1.25-M26
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.1. 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.1
This mechanism allows that sbt 2.0.1 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.1 to upgrade the sbt shell script, sbtn, and the launcher.
🐛 Bug fixes
- fix: Fixes sbt runner parsing
build.propertieswith whitespaces by @anatoliykmetyuk in #9374 - fix: Fixes global plugin loading by @eed3si9n in #9391 / #9380
- fix: Fixes sbt runner support on OpenBSD by @eed3si9n in #9394
- fix: Fixes
--allow-emptyand--sbt-createby @anatoliykmetyuk in #9370 - fix: Fixes BSP
publishDiagnosticspropagation by @anatoliykmetyuk in #9376 - fix: Fixes macro expansion for higher-kinded type arguments by @tanishiking in #9377
- fix: Fixes IllegalAccessError analyzing Java compiled with
--add-exportsby @jozanek in zinc#1714 / zinc#1729 - fix: Fixes incremental compilation of inlined constants in Java by @jozanek in zinc#1721
- fix: Fixes incremental compilation of Java annotation usage by @jozanek in zinc#1722
- fix: Fixes incremental compilation of transitive Java super types by @jozanek in zinc#1732
🚀 Updates
- perf: Update to Coursier 2.1.25-M26 by @retronym in #9382
- perf: Improves performance of incremental test by @mrdziuban + @yhefamly in #9253 + #9364
Participation
sbt 2.0.1 is brought to you by 7 contributors. Jozef Koval, Anatolii Kmetiuk, Eugene Yokota (eed3si9n), Jason Zaugg, Matt Dziuban, Rikito Taniguchi, and 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.