Releases: sbt/sbt
1.11.4
Updates
- fix: Fixes sbt plugin cross building by @eed3si9n in sbt/librarymanagement#528
- fix: Fixes
sonaUploadRequestTimeoutby scoping globally by @eed3si9n in #8190
Full Changelog: v1.11.3...v1.11.4
1.11.3
updates
- Adds
sonaUploadRequestTimeoutsetting to configure the upload timeout when publishing to the Central Repo by @guizmaii in #8171 - fix: Adds support for
pluginCrossBuild/sbtBinaryVersion"1.3", which is used by IntelliJ Scala plugin (fixes #8166) by @unkarjedy in #8167 - fix: Fixes the import order to satisfy SemanticDB by @inglor in #8162
new contributors
Full Changelog: v1.11.2...v1.11.3
1.11.2
updates
- fix: Fixes intermittent NullPointerError in
updatetask by reverting the use ofWeakReferences by @mrdziuban in coursier/sbt-coursier#564 - Adds
Resolver.sonatypeCentralSnapshots,Resolver.sonatypeCentralRepo(...)and deprecatesResolver.sonatypeOssRepos(...),Opts.resolver.sonatypeOssReleases,Opts.resolver.sonatypeOssSnapshots, etc by @eed3si9n in sbt/librarymanagement#517 / #8156
Full Changelog: v1.11.1...v1.11.2
1.11.1
updates
- fix: Fixes memory leak in
updatetask by @mrdziuban in coursier/sbt-coursier#563 - fix: Default
sbtPluginPublishLegacyMavenStyleto false by @eed3si9n in #8148 - fix: Adds
sonaDeploymentNametoexcludeLintKeysby @rtyley in #8143
behind the scene
Full Changelog: v1.11.0...v1.11.1
1.11.0
Central Repository publishing
The Central Repository (aka Maven Central) has long been the pillar of the JVM ecosystem including Scala. The mechanism to publish libraries to the Central has been hosted by Sonatype as OSS Repository Hosting (OSSRH) via HTTP PUT, but in March it was announced that the endpoint will be sunset in June 2025 in favor of the Central Portal at https://central.sonatype.com/.
sbt 1.11.0 implements a built-in support to publish to Central Repository via the Central Portal. To publish to the Central Portal, first set ThisBuild / publishTo setting to the localStaging repository:
ThisBuild / publishTo := {
val centralSnapshots = "https://central.sonatype.com/repository/maven-snapshots/"
if (isSnapshot.value) Some("central-snapshots" at centralSnapshots)
else localStaging.value
}Add credentials to the host central.sonatype.com using the generated user token user name and password. sbt 1.11.0 will read from the environment variables SONATYPE_USERNAME and SONATYPE_PASSWORD and append a credential for central.sonatype.com out-of-box, which might be useful for automatic publishing from the CI environment, such as GitHub Actions.
- run: sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}When you're ready to publish, call publishSigned task (available via sbt-pgp). At this point, the JARs and POM files will be staged to your local target/sona-staging directory.
Next, call sonaUpload to upload to the Central Portal and manually release the bundle, or call sonaRelease to upload and automatically release to the Central Repository.
This was contributed by @eed3si9n in #8126. The feature was inspired by sbt-sonatype workflow pioneered by Taro Saito, and sonatype-central-client spearheaded by David Doyle at Lumidion.
Other updates
- fix: Avoid printing "copying runtime jar" etc to stdout by @eed3si9n in #8081
- fix: Fix incremental test (
testQuick) with companion objects by @eed3si9n in #8087
Full Changelog: v1.10.11...v1.11.0
1.11.0-RC2
changes since 1.11.0-RC1
- fix: Fixes Central Portal status checking by @eed3si9n in #8129
- fix: Fixes Central Portal publishing by @eed3si9n in #8130
Central Repository publishing
The Central Repository (aka Maven Central) has long been the pillar of the JVM ecosystem including Scala. The mechanism to publish libraries to the Central has been hosted by Sonatype as OSS Repository Hosting (OSSRH) via HTTP PUT, but in March it was announced that the endpoint will be sunset in June 2025 in favor of the Central Portal at https://central.sonatype.com/.
sbt 1.11.0 implements a built-in support to publish to Central Repository via the Central Portal. To publish to the Central Portal, first set ThisBuild / publishTo setting to the localStaging repository:
ThisBuild / publishTo := localStaging.valueAdd credentials to the host central.sonatype.com using the generated user token user name and password. When you're ready to publish, call publishSigned task (available via sbt-pgp). At this point, the JARs and POM files will be staged to your local target/sona-staging directory.
Next, call sonaUpload to upload to the Central Portal and manually release the bundle, or call sonaRelease to upload and automatically release to the Central Repository.
This was contributed by @eed3si9n in #8126. The feature was inspired by sbt-sonatype workflow pioneered by Taro Saito, and sonatype-central-client spearheaded by David Doyle at Lumidion.
Other updates
- fix: Avoid printing "copying runtime jar" etc to stdout by @eed3si9n in #8081
- fix: Fix incremental test (
testQuick) with companion objects by @eed3si9n in #8087
Full Changelog: v1.10.11...v1.11.0-RC2
1.11.0-RC1
Central Repository publishing
The Central Repository (aka Maven Central) has long been the pillar of the JVM ecosystem including Scala. The mechanism to publish libraries to the Central has been hosted by Sonatype as OSS Repository Hosting (OSSRH) via HTTP PUT, but in March it was announced that the endpoint will be sunset in June 2025 in favor of the Central Portal at https://central.sonatype.com/.
sbt 1.11.0 implements a built-in support to publish to Central Repository via the Central Portal. To publish to the Central Portal, first set ThisBuild / publishTo setting to the localStaging repository:
ThisBuild / publishTo := localStaging.valueAdd credentials to the host central.sonatype.com using the generated user token user name and password. When you're ready to publish, call publishSigned task (available via sbt-pgp). At this point, the JARs and POM files will be staged to your local target/sona-staging directory.
Next, call sonaUpload to upload to the Central Portal and manually release the bundle, or call sonaRelease to upload and automatically release to the Central Repository.
This was contributed by @eed3si9n in #8126. The feature was inspired by sbt-sonatype workflow pioneered by Taro Saito, and sonatype-central-client spearheaded by David Doyle at Lumidion.
Other updates
- fix: Avoid printing "copying runtime jar" etc to stdout by @eed3si9n in #8081
- fix: Fix incremental test (
testQuick) with companion objects by @eed3si9n in #8087
Full Changelog: v1.10.11...v1.11.0-RC1
1.10.11
updates
π bug fixes
- fix: Fixes
compiletask retrying itself on compiler crashes by @eed3si9n in #8070 - fix:
sbt --client shutdownshortcuts if the server is not already running by @eed3si9n in #8057 - fix: Fixes
sbt --clienton Windows by @eed3si9n in #8071 - fix: Avoids creating target on
sbt --versionby @eed3si9n in #8066 - fix: Fixes slash syntax keys in Scala 2.13 evolution message by @eed3si9n in #8067
Full Changelog: v1.10.10...v1.10.11
2.0.0-M4
π features and other updates
- Implement client-side run by @eed3si9n in #8060
- Make timing outputs consistently show hours and hint at time format by @jsoref in #8019
- Implement
Def.inputTaskDynby @eed3si9n + @adpi2 in #8033
π bug fixes
- fix: Fixes
updateSbtClassifierstask by @unkarjedy in #8024 - fix: Fixes
semanticdbEnabledby @eed3si9n + @bjaglin in #8029 + #8061 - fix: Fixes
build.sbtposition in the error messages by @eed3si9n in #8013 - fix: Adds Retry around directory creation by @eed3si9n in #7979
π¬ behind the scene
- deps: Update build definition to use Scala 3.6.4 by @eed3si9n in #8062
- deps: IO 1.10.4 by @eed3si9n in #8000
- ci: Updates
.scalafmt.confto enforce Scala 3 syntax by @xuwei-k in #7997 - deps: Upgrade sbt ivy by @mkurz in #8043
- refactor: Removes a sbt-coursier workaround by @Friendseeker in #7961
- perf: Caches terminal capability by @eed3si9n in #7977
- refactor: Removes unnecessary
casevia parameter untupling by @xuwei-k in #8045 - refactor: Uses
toIntOptioninstead ofscala.util.Tryby @xuwei-k in #7980 - refactor: Removes unnecessary
asInstanceOfby @xuwei-k in #7984 - refactor: Removes unnecessary vararg splice by @xuwei-k in #7985
- refactor: Uses string interpolation instead of
formatmethod by @xuwei-k in #7986 - refactor: Uses
collectFirstinstead ofcollectandheadOptionby @xuwei-k in #7987 - refactor: Renames files to match the class names by @xuwei-k in #7988
- refactor: Removes incorrect scaladoc
@paramtag by @xuwei-k in #7989 - refactor: Uses
lazyZipby @xuwei-k in #7991 - refactor: Uses
foreachinstead ofmapby @xuwei-k in #7992 - refactor: Removes unused type params by @xuwei-k in #7993
- refactor: Removes unused code in build files by @xuwei-k in #7994
- refactor: Makes
usingparameters anonymous where possible by @xuwei-k in #7995 - refactor: Refactor
SizeUnitandFileStampertoenumby @xuwei-k in #7996 - refactor: Removes unused private
valanddefby @xuwei-k in #7999 - refactor: Uses
withFilterinstead offilterby @xuwei-k in #8001 - refactor: Refactor
ControlEventtoenumby @xuwei-k in #7819 - refactor: Refactor MainLoop.scala by @eed3si9n in #8007
- test: Bump 2.12 versions in scripted by @eed3si9n in #8023
- Merge 1.10.x branch by @eed3si9n in #8036 + #8059
- refactor: Fixes typos by @jsoref in #8028
- refactor: Fixes typos by @xuwei-k in #7990
- refactor: Fixes typos by @xuwei-k in #7998
Full Changelog: v2.0.0-M3...v2.0.0-M4