Skip to content

Releases: sbt/sbt

1.11.4

04 Aug 10:25
v1.11.4

Choose a tag to compare

Updates

Full Changelog: v1.11.3...v1.11.4

1.11.3

05 Jul 22:41
v1.11.3

Choose a tag to compare

updates

  • Adds sonaUploadRequestTimeout setting 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

07 Jun 20:37
v1.11.2

Choose a tag to compare

updates

  • fix: Fixes intermittent NullPointerError in update task by reverting the use of WeakReferences by @mrdziuban in coursier/sbt-coursier#564
  • Adds Resolver.sonatypeCentralSnapshots, Resolver.sonatypeCentralRepo(...) and deprecates Resolver.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

02 Jun 04:33
v1.11.1

Choose a tag to compare

updates

behind the scene

Full Changelog: v1.11.0...v1.11.1

1.11.0

24 May 07:06
v1.11.0

Choose a tag to compare

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

18 May 20:19
v1.11.0-RC2
8a7d84a

Choose a tag to compare

1.11.0-RC2 Pre-release
Pre-release

changes since 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.value

Add 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

17 May 20:55
v1.11.0-RC1

Choose a tag to compare

1.11.0-RC1 Pre-release
Pre-release

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.value

Add 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

17 Mar 05:55
v1.10.11

Choose a tag to compare

updates

πŸ› bug fixes

  • fix: Fixes compile task retrying itself on compiler crashes by @eed3si9n in #8070
  • fix: sbt --client shutdown shortcuts if the server is not already running by @eed3si9n in #8057
  • fix: Fixes sbt --client on Windows by @eed3si9n in #8071
  • fix: Avoids creating target on sbt --version by @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

12 Mar 05:50
v2.0.0-M4
ef6da07

Choose a tag to compare

2.0.0-M4 Pre-release
Pre-release

πŸš€ features and other updates

πŸ› bug fixes

🎬 behind the scene

Full Changelog: v2.0.0-M3...v2.0.0-M4

1.10.10

04 Mar 06:13
v1.10.10

Choose a tag to compare

πŸ› bug fixes

  • fix: Fixes compilation error causing the compilation to retry ten times by @eed3si9n in #8054

Full Changelog: v1.10.9...v1.10.10