github sbt/sbt v1.6.0-M1
1.6.0-M1

latest releases: v1.10.0-RC2, v1.10.0-RC1, v1.9.9...
pre-release2 years ago

Changes with compatibility implications

  • The Scala version used to compile build.sbt is updated to Scala 2.12.15, which improves the compatibility with JDK 17+. The metabuild is compiled with -Xsource:3 flag #6664 by @Nirvikalpa108 + @eed3si9n
  • sbt.TrapExit is dropped due to Security Manager being deprecated in JDK 17. Calling sys.exit in run or test would shutdown the sbt session. Use forking to prevent it #6665 by @eed3si9n

BSP improvements

  • Fixes .sbtopts not getting picked up when sbt server is started by Metals #6593 by @adpi2
  • Fixes BSP IntelliJ import when java is not on PATH #6576 by @github-samuel-clarenc
  • Implements BSP buildTarget/cleanCache, which fixes IntelliJ rebuild #6638 by @hmemcpy
  • Implements BSP build/taskProgress notifications #6642 by @hmemcpy
  • Improves BSP IntelliJ import by sending information about sbt server process failure #6573 by @github-samuel-clarenc
  • Makes BSP requests robust to some target failures [#6609][6609] by @adpi2
  • Sends BSP diagnostics and meaningful error message when reloading fails #6566 by @adpi2

Remote caching improvements

sbt 1.6.0 improves remote caching of resources directory by virtualizing the internal sync state (copy-resources.txt). This allows incremental resource directory synching to be resumed from the remote cache, similar to how Zinc has been able to resume incremental compilation from the remote cache. This was contributed by Amina Adewusi (@Nirvikalpa108) as #6611.

Zinc improvements

Other updates

Don't miss a new sbt release

NewReleases is sending notifications on new releases.