sbt, the interactive build tool
Go to file
MkDev11 08469d8b8c [2.x] fix: Upgrade launcher-package to sbt 1.10.7 and replace dispatch-http (#8465)
Fixes #7826

Changes:
- Upgrade sbt version from 0.13.18 to 1.10.7 in launcher-package/project/build.properties
- Remove dead dispatch-http 0.8.10 dependency from plugins.sbt
- Update sbt-native-packager from 1.7.6 to 1.10.4 (com.github.sbt)
- Update sbt-pgp from 2.1.2 to 2.3.1
- Replace all dispatch.classic._ HTTP calls with Java URL.openStream()

The dispatch-http library is dead and doesn't support sbt 1.x. This change
uses standard Java networking APIs for HTTP downloads, eliminating the
dependency on outdated libraries.

All HTTP download operations now use:
- java.net.URL.openConnection()
- InputStream with buffered reading
- Proper resource cleanup with try-finally blocks

- Removes the sbt-export-repo plugin dependency
- Defines exportRepo and exportRepoDirectory settings locally
- Removes ExportRepoPlugin from dist project
- Fixes exportRepo task to not reference itself

* fix: Update PackageSignerPlugin.scala for sbt 1.x compatibility
- Use withExtension instead of copy(extension = ...) for Artifact
- Update Classpaths.publishConfig to use sbt 1.x signature with all required parameters
- Use new slash syntax for scoped keys (pgpSigner / skip instead of skip in pgpSigner)

* fix: Use computed status instead of status key in PackageSignerPlugin

* fix: Use withRevision instead of copy for ModuleID in build.sbt

- Add scala.sys.process._ import for shell command execution (! method)
- Fix resolvers setting to use new slash syntax and proper Option handling
- Fix publish/publishLocal to use {} instead of () to avoid deprecation warning
- Fix Classpaths.publishTask to use variant without delivery key (deprecated since 1.1.1)
- Add scala.sys.process._ import for shell command execution
- Fix publish/publishLocal to use {} instead of ()
- Remove problematic resolvers setting that caused task/setting dependency issues
- Use IvyActions.publish directly instead of deprecated Classpaths.publishTask
- Fix ModuleID.copy to use withRevision
- Fix Artifact.copy to use withExtension
- Use computed status value instead of status key

Build now compiles successfully with sbt 1.10.7.
2026-01-11 21:39:44 -05:00
.github Scala 2.12.21 2025-12-09 17:28:03 +09:00
client Bye jansi 2024-11-07 18:46:04 -08:00
core-macros/src/main/scala/sbt/internal/util/appmacro Transfer copyright to Scala Center 2023-06-20 16:39:07 +02:00
dependency-tree/src/main/scala/sbt/plugins Transfer copyright to Scala Center 2023-06-20 16:39:07 +02:00
internal Show warnings when scalaVersion is missing 2026-01-04 15:23:05 -05:00
launch Transfer copyright to Scala Center 2023-06-20 16:39:07 +02:00
launcher-package [2.x] fix: Upgrade launcher-package to sbt 1.10.7 and replace dispatch-http (#8465) 2026-01-11 21:39:44 -05:00
licenses move remaining pieces of sbt subproject to sbt_pending and fix notices 2010-09-21 21:55:50 -04:00
main Show warnings when scalaVersion is missing 2026-01-04 15:23:05 -05:00
main-actions/src [sonatype publishing] print deployment validation errors if present 2025-08-04 15:03:53 +02:00
main-command/src Improve sbtn a bit 2025-08-24 03:58:13 -04:00
main-settings/src Transfer copyright to Scala Center 2023-06-20 16:39:07 +02:00
notes fix typo 2023-06-24 20:05:52 +09:00
project [1.x] Zinc 1.12.0 2026-01-04 20:50:33 -05:00
protocol/src/main fix: Use JDK path, not JRE path 2025-03-03 02:31:44 -05:00
run fix runMain task. support JEP-512 2025-10-04 06:42:16 +09:00
sbt-app/src Show warnings when scalaVersion is missing 2026-01-04 15:23:05 -05:00
scripted-plugin/src/main/scala/sbt Transfer copyright to Scala Center 2023-06-20 16:39:07 +02:00
scripted-sbt-old/src/main/scala/sbt/test Transfer copyright to Scala Center 2023-06-20 16:39:07 +02:00
scripted-sbt-redux Keep the close method 2023-07-23 01:01:23 -04:00
server-test/src Scala 2.12.21 2025-12-09 17:28:03 +09:00
src/main/conscript sbt 1.3.0 2019-09-04 01:24:08 -04:00
tasks fix scaladoc warnings 2023-06-25 08:04:17 +09:00
tasks-standard some trivial refactoring 2023-06-25 08:57:41 +09:00
testing Bump IO, ipc-socket, and launcher 2024-10-18 02:26:58 -04:00
util-cache Transfer copyright to Scala Center 2023-06-20 16:39:07 +02:00
util-tracking Transfer copyright to Scala Center 2023-06-20 16:39:07 +02:00
zinc-lm-integration/src Bump CI to JDK 21 2024-10-16 10:57:22 -07:00
.gitattributes Fix line endings in msi 2021-11-19 20:41:39 -05:00
.gitignore Bump lm 2025-08-23 18:14:10 -04:00
.mailmap Add mailmap 2019-06-11 09:30:14 +02:00
.sbtopts Restore .sbtopts file 2020-11-19 12:42:26 -08:00
.scalafmt.conf SourcePositionMacro for Scala 3 2021-11-16 16:32:31 +09:00
CONTRIBUTING.md Minor updates on development guide 2023-10-21 21:00:31 -04:00
DEVELOPING.md [1.x] Building sbtn locally for Aarch64 2025-09-02 01:32:19 -04:00
LICENSE Transfer copyright to Scala Center 2023-06-20 16:39:07 +02:00
NOTICE Transfer copyright to Scala Center 2023-06-20 16:39:07 +02:00
PROFILING.md fix typo 2018-07-08 22:18:57 +09:00
README.md Update badges 2022-07-04 11:11:49 -04:00
SUPPORT.md Transfer copyright to Scala Center 2023-06-20 16:39:07 +02:00
build.sbt Show warnings when scalaVersion is missing 2026-01-04 15:23:05 -05:00
reset.sh 1.0.3-SNAPSHOT 2017-09-16 15:52:58 -04:00
sbt sbt 1.12.0 2026-01-04 21:18:03 -05:00
sbt-allsources.sh Build from fresh modules 2020-11-14 14:23:48 -05:00
sbt.sh Implement sbt-launch.jar download 2021-04-19 23:43:15 -04:00
server.md setting query is "sbt/setting" 2017-10-03 01:45:06 -04:00

README.md

CI Latest version Discord

sbt

sbt is a build tool for Scala, Java, and more.

For general documentation, see https://www.scala-sbt.org/.

sbt 1.x

This is the 1.x series of sbt. The source code of sbt is split across several GitHub repositories, including this one.

  • sbt/io hosts sbt.io module.
  • sbt/librarymanagement hosts sbt.librarymanagement module that wraps Ivy.
  • sbt/zinc hosts Zinc, an incremental compiler for Scala.
  • sbt/sbt, this repository hosts modules that implements the build tool.
  • Setup: Describes getting started with the latest binary release.
  • FAQ: Explains how to get help and more.
  • sbt/sbt-zero-seven: hosts sbt 0.7.7 and earlier versions

Issues and Pull Requests

Please read CONTRIBUTING carefully before opening a GitHub Issue.

The short version: try searching or asking on StackOverflow.

license

See LICENSE.