Releases: sbt/sbt
1.8.0
Security fixes
- Updates to Coursier 2.1.0-RC1 to address CVE-2022-37866
- Updates to Ivy 2.3.0-sbt-a8f9eb5bf09d0539ea3658a2c2d4e09755b5133e to address CVE-2022-37866
Changes with compatibility implications
- Updates to Scala 2.12.17 + Scala compiler 2.12.17, which upgrades to scala-xml 2.x #7021
Bug fixes
Other updates
- Adds long classpath support on JDK 9+ via argument file (opt out using
-Dsbt.argsfile=false
orSBT_ARGSFILE
environment variable) #7010 by @easel - Adds out-of-box ZIO Test support #7053 by @987Nabil
- Adds support for newly introduced
buildTarget/outputPaths
method of Build Server Protocol. #6985 by @povder
New Contributors
- @easel made their first contribution in #7010
- @sashashura made their first contribution in #7023
- @987Nabil made their first contribution in #7053
Full Changelog: v1.7.1...v1.8.0
1.8.0-RC1
Changes with compatibility implications
- Updates to Scala 2.12.17 + Scala compiler 2.12.17, which upgrades to scala-xml 2.x #7021
Bug fixes
Other updates
- Adds long classpath support on JDK 9+ via argument file (opt out using
-Dsbt.argsfile=false
orSBT_ARGSFILE
environment variable) #7010 by @easel - Adds out-of-box ZIO Test support #7053 by @987Nabil
- Adds support for newly introduced
buildTarget/outputPaths
method of Build Server Protocol. #6985 by @povder
New Contributors
- @easel made their first contribution in #7010
- @sashashura made their first contribution in #7023
- @987Nabil made their first contribution in #7053
Full Changelog: v1.7.1...v1.8.0-RC1
1.7.3
updates
- Updates underlying Coursier from 2.1.0-M2 to 2.1.0-M7-18-g67daad6a9 (lm-coursier-shaded 2.0.12) by @eed3si9n in #7060
- Sets up automatic release to to WinGet by @vedantmgoyal2009 in #6981
new contributors
- @vedantmgoyal2009 made their first contribution in #6981
Full Changelog: v1.7.2...v1.7.3
1.7.2
See https://github.com/sbt/sbt/releases/tag/v1.7.0 for the details on sbt 1.7.x.
- Fixes invalidation of incremental
testQuick
task #6903 by @gontard - Fixes
/tmp/.sbt/
collision for domain socket #7041 by @eed3si9n - Adds workaround for
dependencyBrowseGraph
with sometimes missing node #6978 by @frosforever - Updates
sbt new
by default to use Giter8 0.15.0 #7038 by @eed3si9n - Updates launcher to support Scala 3 apps #7035 by @eed3si9n
- Adds
diagnosticCode
anddiagnosticRelatedInforamation
(sic) toInterfaceUtil.problem(...)
#7006 by @ckipp01 - Forwards
diagnosticCode
to BSP #6998 by @ckipp01 - Improves log for not found remote cache #6824 by @gontard
1.7.1
See https://github.com/sbt/sbt/releases/tag/v1.7.0 for the details on sbt 1.7.x.
Bug fix
- Fixes Java incremental compilation, specifically parsing of annotations in class files of @SethTisue in sbt/zinc#1111
Full Changelog: v1.7.0...v1.7.1
1.7.0
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
1.7.0-RC2
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/ lm393 by @armanbilge
++
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
requires 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
1.7.0-RC1
Changes with compatibility implications
- 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/ lm393 by @armanbilge
++
command updates
Previously ++ <sv> <command1>
filtered subprojects using crossScalaVersions
having the same ABI suffix as <sv>
. This incorrectly matched subprojects with 3.1.3
when ++ 3.0.1 test
is given. sbt 1.7.0 fixes this by requiring ++ <sv> <command1>
to be backward compatible. Rui Gonรงalves contributed this fix as lm#400.
In #6894, Arnout Engelen contributed expansion to ++ <sv> <command1>
so <sv>
part can be given as a semantic version selector expression, such as 2.13.x
. Note that the expression may match at most one Scala version to switch into.
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 by @tanishiking - Adds optional framework field to the BSP response #6830 by @kpodsiad
- Adds BSP environment request support #6858 by @kpodsiad
Other updates
- 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
Full Changelog: v1.6.2...v1.7.0-RC1
1.7.0-M3
Changes with compatibility implications
- 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/ lm393 by @armanbilge
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 by @tanishiking - Adds optional framework field to the BSP response #6830 by @kpodsiad
- Adds BSP environment request support #6858 by @kpodsiad
Other updates
- 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
Full Changelog: v1.6.2...v1.7.0-M3
1.7.0-M2
Scala 3 forward compatibility support
sbt 1.7.0 implements support for Scala 3.1.2's improved forward compatibility feature.
ThisBuild / scalaVersion := "3.1.2"
ThisBuild / scalaOutputVersion := "3.0.2"
This sets the -scala-output-version
compiler option to 3.0
, which lets us generate TASTy files and bytecode compatible with older Scala 3.x versions, while using newer Scala 3.x compiler at runtime. In addition, runtime Scala version and POM entries are also downgraded to 3.0.2
.
The sbt support for this was contributed by Michaล Paลka at VirtusLab as #6814.
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 by @tanishiking - Adds optional framework field to the BSP response #6830 by @kpodsiad
- Adds BSP environment request support #6858 by @kpodsiad
Other updates
- 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
Full Changelog: v1.6.2...v1.7.0-M2