Repository navigation
Update dependency sbt/sbt to v2.1.0 - #931
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
2.0.12→2.1.0Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
sbt/sbt
v2.1.0: 2.1.0Compare Source
Changes with compatibility implications
Scala 3.9
sbt 2.1.0 updates the Scala version used by the metabuild to Scala 3.9.0 LTS.
Since both sbt 2.x and Scala 3.x are only backward compatible across minor versions, appropriate Scala version must be used for building sbt plugins:
While publishing plugins using sbt 2.1.0 would mean that it would no longer be compatible with sbt 2.0.x, given that Scala 3.9 is an LTS that will be supported for the next 3 years, we should use it as a new baseline. Here's how to set the minimal sbt version for your plugin:
Publishing
sbt 2.1.0 removes Apache Ivy from its transitive dependency, and implements Ivyless publishing.
This was contributed by @bitloi, @fury0928, @BrianHotopp, @mkurz, @stasimus, @jozanek, and @eed3si9n in #8686, #8866, #8894, #8975, #8988, #8996, #9069, #9463, and #9533, #9615, #9756, #9804, #9806, #9811, #9814 etc.
Test summary
When tests are executed, sbt 2.1.0 displays a test summary at the end, listing the failed test suites as follows:
[error] Test summary (2 test tasks failed): [error] a / Test / testQuick [error] com.example.a.TestA FAIL [error] b / Test / testQuick [error] com.example.b.TestB FAIL [error] [error] failed: total 4, failed 2, errors 0, passed 2, cached 2Successful tests will display only a terse summary by default:
--test_summary=successcan override the behavior to list the successful test as well. Test summary was contributed by @eed3si9n and @BrianHotopp in #9602 + #9214.Test cache opt-out
sbt 2.1.0 can let you opt out of test result caching:
$ sbt test --cache_test_result=falseThis was contributed by @anatoliykmetyuk in #9675.
workerMaxInstances and testTopology
sbt 2.1.0 adds new settings
workerMaxInstancesandtestTopologyto control test scheduling,especially of the forked tests. Use
Global / workerMaxInstancesto change the number of worker instances. The default is set to 2:Use the
testTopologysetting to control whether you want to split the test classes into multiple workers or keep them together. The default was changed to split to 2 groups:To keep all classes in a subproject on one worker instead, use:
This was contributed by @eed3si9n in #9665
clean task
sbt 2.1.0 updates the
cleantask to act as a cache invalidator. Regardless of the cache state, runningcleanwould invalidate the cache for the next command execution. This can be scoped to subproject or configuration:This was contributed by @eed3si9n in #9752
Source dependency update
sbt 2.1.0 provides better control to handle source dependencies.
This was contributed by @seroperson in #8880.
Identity map optimization
In sbt 2.1.0, a key assignment (
:=) whose right-hand side isexpr.valueshort-circuits tox.set(expr).This is helpful in avoiding
JsonFormat[A]whenexpris an uncached task.This was contributed by @eed3si9n in #9831
Task-level caching opt-out
This was contributed by @eed3si9n in #9874
Input-only cache
sbt 2.1.0 introduces a new cache level
CacheLevelTag.InputOnly:Similar to
Def.uncached(...),scalacOptionswill evaluate each time, butscalacOptions.valuewill participate as an input to other cached task.This was contributed by @eed3si9n in #9953
HTTP Bazel cache
sbt 2.1.0 adds support for HTTP Bazel cache, in addition to gPRC.
This was contributed by @eed3si9n in #9880
🚀 Other updates
doc / skip := trueby @fury0928 in #8824--appendfor file output in multi-module builds by @oolokioo7 in #8878crossandswitchfor+/++by @jonathanchang31 in #9051buildTarget/dependencyModulesby @jsdevninja in #9085ModuleID#excludethat acceptsa %% bby @seroperson in #8756build.sbtby @xuwei-k in #9579Seq[Initialize[Task[T]]]#joinextension method by @jozanek in #9347LoggerContext.removeAppenderfor single appender removal by @stasimus in #9740ProjectMatrix#configureRowsandconfigurePlatformsmethods by @kitbellew in #9765remoteCacheRequestTimeoutsetting by @eed3si9n in #9829CrossVersion: make parser public by @kitbellew in #9864sbt queryby @eed3si9n in #9876Terminal.withRawInputfor reading single keys by @mkurz in #9948originto the execution log by @eed3si9n in #9944sbt/execsto list running and waiting commands by @eed3si9n in #9984sbt/shutdownrequest with a force option by @azdrojowa123 in #9952sbt/execsChangednotification by @eed3si9n in #10001remoteCacheUploadResults(read-only support) by @ghostbuster91 in #10027🐛 Bug fixes
ZincComponentManagerby @since-2017-hub in #8800.sbtoptsnot handling-sbt-dirwith spaces by @Eruis2579 in #8875.sbtoptshas errors by @oolokioo7 in #8883sbt new scala/toolkit.localsupport by @mohamed0803 in #8887TaskConvert.appExprby @xuwei-k in #8899set everycommand with configuration scoping by @bittoby in #8916.evaluatedis used outside macro context by @BrianHotopp in #8951libraryDependencySchemeson cross-platform dependencies by @ckstck in #8957-sbt-dir/sbt.global.basenot resolving relative paths by @BrianHotopp in #9001curlleaving in the runner script corrupt JARs by @BrianHotopp in #9003derivedProjectsnot invoked when no explicit root project is defined by @bitcompass in #9012sbt.Tests.Group#hashCodeby @xuwei-k in #9065src/main/resources/log4j2.xmlby @xuwei-k in #9071consoleProjectfor Scala 3 by @fury0928 in #9073dependencyTreebrowse crashes on Linux by @jimcody1995 in #9147dependencyTreerendering duplicate subtree by @BrianHotopp in #9226equalsandhashCodeinLabeledFunctionsby @xuwei-k in #9228[organisation]by @jozanek in #9344bgStopjob id parser by @merlinorg in #9353-java-homeby @jozanek in #9434build.sbtcompilation errors not forwarded to the logger by @eed3si9n in #9599active.jsonby @eed3si9n in #9617-Dsbt.global.basesetting by @vlovgr in #9688semanticdbTargetRootin the compile cache key by @christianharrington in #9711-Doptions change by restarting the server by @stasimus in #9685customRowwith an emptyscalaVersionsby @kitbellew in #9717runAggregatedfalling back toZerosubproject scope by @jozanek in #9722compileOrderand pipelining in the compile cache key by @stasimus in #9749sbt bspby @stasimus in #9766taskValuein its compile-time diagnostic by @anatoliykmetyuk in #9779ProjectMatrix: validate axes againstautoScalaLibraryby @kitbellew in #9771sbt --serverby @hoangmaihuy in #9783inMemoryAnalysisCachelimit by @eed3si9n in #9500JAVA_HOMEin the runner script by @anatoliykmetyuk in #9825.m2/settings.xmloverridingsbtResolversby @eed3si9n in #9828-Joptions not forwarded to sbt server by @mkurz in #9839Path.userHomeby @eed3si9n in #9866dependencyLockby @seveneves in #9873AccessDeniedExceptionwriting SemanticDB by @eed3si9n in #9878inputTaskmacro to be-Xcheck-macrosready by @eed3si9n in #9955runtask by @xuwei-k in #9963AccessDeniedExceptionwriting class and TASTy files by @eed3si9n in #9968usePipelininginstead of cancelling by @mkurz in #9969sbt --clientby @anatoliykmetyuk in #9979cleannot invalidating cached test results by @eed3si9n in #10019Shutdownnotification lost when the server ends a connection by @mkurz in #10021exitby @mkurz in #10010sbt/shutdownhanging after another client cancels it by @azdrojowa123 in #10028resolvedScalacOptionsmissing from task-scope by @eed3si9n in #10030javacOptionsby @eed3si9n in #10032no-default-task-cacheinproject/*.scalaby @eed3si9n in #10033Zinc bug fixes
associatedFileas absent on Scala 2.10 by @jozanek in sbt/zinc#1785JavaThenScalawhen pipelining by @stasimus in sbt/zinc#1789dependencyPhaseCompletedby @lrytz in sbt/zinc#1823withBootclasspathby @hoangmaihuy in sbt/zinc#1834NameHashingby @retronym in sbt/zinc#1852VirtualFileRefby @eed3si9n in sbt/zinc#1877VirtualFileRefby @eed3si9n in sbt/zinc#1878javacOptionsby @eed3si9n in sbt/zinc#1879⚡ Performance improvements
UpdateReportcache persistence by @bitloi in #8815AutoPluginprojectSettings/projectConfigurationsby @volcano303 in #9077InterfaceUtilby @xuwei-k in #9223UpdateReportvalues by @hoangmaihuy in #9523UpdateReportdisk format by @hoangmaihuy in #9515packageBinJARs and action cache zips in parallel by @hoangmaihuy in #9661Executeby @retronym in #9885Behind the scenes
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.