Changes with compatibility implications
++
is stricter. See below.- Drops OkHttp 3.x dependency lm#399 by @eed3si9n
- Updates to Scala 2.12.16
- Moves domain socket location to
XDG_RUNTIME_DIR
and/tmp
#6887 by @AlonsoM45 - Deprecates
Resolver.sonatypeRepo
and addsResolver.sonatypeOssRepos
, which includes https://s01.oss.sonatype.org/ by @armanbilge in lm#393
++
command updates
Prior to sbt 1.7 ++ <sv> <command1>
filtered subprojects using crossScalaVersions
having the same ABI suffix as <sv>
. This behavior was generally not well understood, and also created incorrect result for Scala 3.x since ++ 3.0.1 test
could downgrade subproject that may require 3.1 or above.
sbt 1.7.0 fixes this by requiring ++ <sv> <command1>
so <sv>
part can be given as a semantic version selector expression, such as 3.1.x
or 2.13.x
. Note that the expression may match at most one Scala version to switch into. In sbt 1.7.0, a concrete version such as ++ 3.0.1
equires exact version to be present in crossScalaVersion
.
This contribution was a collaborated effort among Arnout Engelen #6894, Rui Gonçalves lm#400, and Eugene Yokota.
Scala 3 compiler error improvements
In zinc#1082, Toshiyuki Takahashi contributed a fix to ignore Problem#rendered
passed from the compiler when sbt uses position mapper to transform the position. This is aimed at fixing the error reporting for Play on Scala 3.
In #6874, Chris Kipp extended xsbti.Problem
to track richer information available in Scala 3. This is aimed at enhancing the compilation errors reported to BSP client such as Metals.
BSP updates
- Fixes sbt sending cumulative
build/publishDiagnostics
in BSP #6847/#6929 by @tanishiking and @kpodsiad - Adds optional framework field to the BSP response #6830 by @kpodsiad
- Adds BSP environment request support #6858 by @kpodsiad
Other updates
- Fixes under-compilation when Java annotation changes by @SethTisue in zinc#1079
- Fixes ipcsocket JNI cleanup code deleting empty directories in
/tmp
ipc#23 by @eed3si9n - Fixes command argument parsing with quotes in
-a="b c"
pattern #6816 by @Nirvikalpa108 - Fixes
ThisBuild / includePluginResolvers
#6849 by @bjaglin - Fixes watchOnTermination callbacks #6870 by @eatkins
- Fixes
proxyInputStream#available
, which affected sbt-sitepreviewSite
#6965 by @eed3si9n