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. Callingsys.exit
inrun
ortest
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 onPATH
#6576 by @github-samuel-clarenc - Implements BSP
buildTarget/cleanCache
, which fixes IntelliJrebuild
#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
- Fixes under-compilation of folded constants (see also SI-7173) zinc@d15228/zinc#1003 by @ephemerist and @dwijnand
- Fixes over-compilation of extended classes on JDK 11 zinc#998 by @lrytz
- Improves performance of loading used names from persisted
Analysis
file zinc#995 by @dwijnand
Other updates
- Fixes shutdown hook error in timing report #6630 by @Nirvikalpa108
- Fixes
ClassCastException
inXMainConfiguration
#6649 by @eed3si9n - Moves
scalaInstanceTopLoader
tocompileBase
settings #6480 by @adpi2 - Fixes
crossSbtVersions
included intolintBuild
#6656 by @Nirvikalpa108