sbt, the interactive build tool
sbt 1.7.0 implements support for Scala 3.1.2's improved forward compatibility feature.
ThisBuild / scalaVersion := "3.1.2-RC2"
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.
Fixes command argument parsing with quotes in -a="b c"
pattern #6816 by @Nirvikalpa108.
Adds optional framework field to the BSP response #6830 by @kpodsiad.
Fixes sbt sending cumulative build/publishDiagnostics
in BSP #6847 by @tanishiking.
readLine
catching InterruptedException
#6803 by @tpetillot
sbt --help
by removing unimplemented -S-X
option #6799 by @Nirvikalpa108
sbt 1.6.2 adds License
object that defines predefined license values:
licenses := List(License.Apache2)
Predefined values are License.Apache2
, License.MIT
, License.CC0
, and License.GPL3_or_later
. lm#395 by @eed3si9n
https://github.com/sbt/sbt/compare/v1.5.8...v1.6.0
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
SBT_CREDENTIALS
environment variable, following sbt launcher #6724 by @daddykotex
.sbtopts
not getting picked up when sbt server is started by Metals #6593 by @adpi2
java
is not on PATH
#6576 by @github-samuel-clarenc
buildTarget/cleanCache
, which fixes IntelliJ rebuild
#6638 by @hmemcpy
build/taskProgress
notifications #6642 by @hmemcpy
sbtn
buffer not printing out all the outputs on system out #6703 by @adpi2
<macro>
, which are occasionally returned by the compiler #6730 by @eed3si9n
sbt shutdownall
to shutdown all sbt server instances #6697 by @er1c
sbt --no-server
to not start the server or use a virtual terminal #6728 by @eed3si9n
Analysis
file zinc#995 by @dwijnand
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.
dependencyTree
to use asciiGraphWidth
setting 6693 by @kijuky
dependencyBrowseTree
#6675 by @nimatrueway
dependencyBrowseTree
to use Contraband data types instead of scala.util.parsing.json
#6699 by @Nirvikalpa108
Updates to lm-coursier 2.0.9, which uses Coursier 2.1.0-M2. This fixes full Scala suffix getting incorrectly overwritten by scalaVersion
#6753 by @eed3si9n
Fixes shutdown hook error in timing report #6630 by @Nirvikalpa108
Fixes ClassCastException
in XMainConfiguration
#6649 by @eed3si9n
Moves scalaInstanceTopLoader
to compileBase
settings #6480 by @adpi2
Fixes crossSbtVersions
included into lintBuild
#6656 by @Nirvikalpa108
Fixes realpathish
function in sbt
runner script #6641 by @darabos
Fixes repeated version numbers in eviction error lm#386 by @rtyley
Flyweights ConfigRef
to reduce heap usage lm#390 by @eed3si9n
Adds Windows Java home selectors for JDK cross building #6684 by @kxbmap
Makes scripted Java home configurable using scripted / javaHome
#6673 by @kxbmap
maven.repo.local
system property configures local Maven repository lm#391 by @peter-janssen
https://github.com/sbt/sbt/compare/v1.6.0-RC1...v1.6.0-RC2
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
SBT_CREDENTIALS
environment variable, following sbt launcher #6724 by @daddykotex
.sbtopts
not getting picked up when sbt server is started by Metals #6593 by @adpi2
java
is not on PATH
#6576 by @github-samuel-clarenc
buildTarget/cleanCache
, which fixes IntelliJ rebuild
#6638 by @hmemcpy
build/taskProgress
notifications #6642 by @hmemcpy
sbtn
buffer not printing out all the outputs on system out #6703 by @adpi2
<macro>
, which are occasionally returned by the compiler #6730 by @eed3si9n
sbt shutdownall
to shutdown all sbt server instances #6697 by @er1c
sbt --no-server
to not start the server or use a virtual terminal #6728 by @eed3si9n
Analysis
file zinc#995 by @dwijnand
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.
dependencyTree
to use asciiGraphWidth
setting 6693 by @kijuky
dependencyBrowseTree
#6675 by @nimatrueway
dependencyBrowseTree
to use Contraband data types instead of scala.util.parsing.json
#6699 by @Nirvikalpa108
Updates to lm-coursier 2.0.9, which uses Coursier 2.1.0-M2. This fixes full Scala suffix getting incorrectly overwritten by scalaVersion
#6753 by @eed3si9n
Fixes shutdown hook error in timing report #6630 by @Nirvikalpa108
Fixes ClassCastException
in XMainConfiguration
#6649 by @eed3si9n
Moves scalaInstanceTopLoader
to compileBase
settings #6480 by @adpi2
Fixes crossSbtVersions
included into lintBuild
#6656 by @Nirvikalpa108
Fixes realpathish
function in sbt
runner script #6641 by @darabos
Fixes repeated version numbers in eviction error lm#386 by @rtyley
Flyweights ConfigRef
to reduce heap usage lm#390 by @eed3si9n
Adds Windows Java home selectors for JDK cross building #6684 by @kxbmap
Makes scripted Java home configurable using scripted / javaHome
#6673 by @kxbmap
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
SBT_CREDENTIALS
environment variable, following sbt launcher #6724 by @daddykotex
.sbtopts
not getting picked up when sbt server is started by Metals #6593 by @adpi2
java
is not on PATH
#6576 by @github-samuel-clarenc
buildTarget/cleanCache
, which fixes IntelliJ rebuild
#6638 by @hmemcpy
build/taskProgress
notifications #6642 by @hmemcpy
sbtn
buffer not printing out all the outputs on system out #6703 by @adpi2
<macro>
, which are occasionally returned by the compiler #6730 by @eed3si9n
sbt shutdownall
to shutdown all sbt server instances #6697 by @er1c
sbt --no-server
to not start the server or use a virtual terminal #6728 by @eed3si9n
Analysis
file zinc#995 by @dwijnand
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.
dependencyTree
to use asciiGraphWidth
setting 6693 by @kijuky
dependencyBrowseTree
#6675 by @nimatrueway
dependencyBrowseTree
to use Contraband data types instead of scala.util.parsing.json
#6699 by @Nirvikalpa108
Updates to lm-coursier 2.0.9, which uses Coursier 2.1.0-M1. This fixes full Scala suffix getting incorrectly overwritten by scalaVersion
#6725 by @eed3si9n
Fixes shutdown hook error in timing report #6630 by @Nirvikalpa108
Fixes ClassCastException
in XMainConfiguration
#6649 by @eed3si9n
Moves scalaInstanceTopLoader
to compileBase
settings #6480 by @adpi2
Fixes crossSbtVersions
included into lintBuild
#6656 by @Nirvikalpa108
Fixes realpathish
function in sbt
runner script #6641 by @darabos
Fixes repeated version numbers in eviction error lm#386 by @rtyley
Flyweights ConfigRef
to reduce heap usage lm#390 by @eed3si9n
Adds Windows Java home selectors for JDK cross building #6684 by @kxbmap
Makes scripted Java home configurable using scripted / javaHome
#6673 by @kxbmap
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
.sbtopts
not getting picked up when sbt server is started by Metals #6593 by @adpi2
java
is not on PATH
#6576 by @github-samuel-clarenc
buildTarget/cleanCache
, which fixes IntelliJ rebuild
#6638 by @hmemcpy
build/taskProgress
notifications #6642 by @hmemcpy
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.
Analysis
file zinc#995 by @dwijnand
ClassCastException
in XMainConfiguration
#6649 by @eed3si9n
scalaInstanceTopLoader
to compileBase
settings #6480 by @adpi2
crossSbtVersions
included into lintBuild
#6656 by @Nirvikalpa108