sbt, the interactive build tool
Go to file
MkDev11 bbeeb25422
[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 07:17:24 -05:00
.github Bump dessant/lock-threads from 5 to 6 2025-12-15 04:00:59 +00:00
buildfile/src remove unused code 2025-10-04 19:16:22 +09:00
client Bye jansi 2024-11-07 22:07:07 -08:00
contributing-docs Fix typo in link to CONTRIBUTING.md 2026-01-11 03:57:14 -05:00
core-macros/src Add tailrec annotation 2026-01-11 16:33:45 +09:00
internal Add tailrec annotation 2026-01-11 16:33:45 +09: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 07:17:24 -05:00
licenses move remaining pieces of sbt subproject to sbt_pending and fix notices 2010-09-21 21:55:50 -04:00
lm-core Merge pull request #8468 from xuwei-k/tailrec-annotation 2026-01-11 03:19:19 -05:00
lm-coursier Add tailrec annotation 2026-01-11 16:33:45 +09:00
lm-ivy/src Remove redundant String#toString 2026-01-11 16:46:05 +09:00
main Merge pull request #8468 from xuwei-k/tailrec-annotation 2026-01-11 03:19:19 -05:00
main-actions/src [2.x] Add testForkedParallelism setting for forked test thread count (#8453) 2026-01-09 12:43:50 -05:00
main-command/src Add tailrec annotation 2026-01-11 16:33:45 +09:00
main-settings/src Merge pull request #8468 from xuwei-k/tailrec-annotation 2026-01-11 03:19:19 -05:00
notes Spelling (#8028) 2025-02-04 01:11:28 -05:00
project Fix #3746: Scripted should fail when no tests match the pattern 2026-01-09 13:57:58 -06:00
protocol/src/main Update to Contraband 0.8.0 2025-09-19 00:46:34 -04:00
run Merge branch '1.12.x' into wip/merge-1.12.x 2025-11-24 02:14:17 -05:00
sbt-app/src avoid deprecated scala.App 2026-01-09 20:10:28 +09:00
sbt-remote-cache/src/main/scala/sbt remove unnecessary `case` 2025-02-22 08:48:29 +09:00
scripted-sbt Fix #3746: Scripted should fail when no tests match the pattern 2026-01-09 13:57:58 -06:00
scripts Fix lm-coursier scripted 2024-10-11 14:30:55 +02:00
server-test/src Merge branch '1.12.x' into wip/merge-1.12.x 2026-01-05 00:08:21 -05:00
src/main/conscript sbt 1.3.0 2019-09-04 01:24:08 -04:00
tasks remove unnecessary `case` 2025-02-22 08:48:29 +09:00
tasks-standard Add tailrec annotation 2026-01-11 16:33:45 +09:00
testing Apply Contraband 2025-09-28 21:28:21 -04:00
util-cache Fix side-effect file syncing when using symlink optimization 2026-01-10 00:25:59 +01:00
util-collection Remove redundant asInstanceOf 2026-01-11 16:43:17 +09:00
util-tracking Remove deprecated methods 2025-05-11 05:23:41 -04:00
worker/src [2.x] Add testForkedParallelism setting for forked test thread count (#8453) 2026-01-09 12:43:50 -05:00
zinc-lm-integration/src Merge branch '1.12.x' into wip/merge-1.12.x 2026-01-05 00:08:21 -05:00
.git-blame-ignore-revs Add .git-blame-ignore-revs 2024-10-09 13:38:02 +02:00
.gitattributes Fix line endings in msi 2021-11-19 20:41:39 -05:00
.gitignore Merge branch '1.11.x' into wip/merge-1.11.x 2025-08-25 02:29:12 -04:00
.gitmodules Move metadata to lm-coursier/metadata 2024-10-09 09:44:42 +02:00
.jvmopts Add .jvmopts 2023-11-25 01:06:30 -05:00
.mailmap Add mailmap 2019-06-11 09:30:14 +02:00
.sbtopts Restore .sbtopts file 2020-11-19 12:42:26 -08:00
.scala-steward.conf Pin slf4j-api 2023-01-02 22:06:46 -05:00
.scalafmt.conf update scalafmt config. re-format build files 2025-09-23 10:28:38 +09:00
AGENTS.md docs: Contributor's Guide 2026-01-11 03:24:30 -05:00
CONTRIBUTING.md docs: Contributor's Guide 2026-01-11 03:24:30 -05:00
LICENSE add LICENSE file 2023-06-25 09:53:06 +09:00
NOTICE Transfer copyright to Scala Center 2023-06-20 16:39:07 +02:00
PROFILING.md docs: Update flamegraph guide --lines 2025-11-09 18:06:13 -05:00
README.md docs: Contributor's Guide 2026-01-11 03:24:30 -05:00
SUPPORT.md Transfer copyright to Scala Center 2023-06-20 16:39:07 +02:00
build.sbt [2.x] consoleProject 2026-01-10 02:15:59 -05:00
reset.sh 1.0.3-SNAPSHOT 2017-09-16 15:52:58 -04:00
sbt Fix --sbt-version to expand to -Dsbt.version 2026-01-08 20:51:27 +01:00
sbt-allsources.sh Merge remote-tracking branch 'lm/wip/sbt-2.x' into 2.x-lm-coursier 2024-10-09 08:50:03 +02: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 2.x

This is the 2.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/zinc hosts Zinc, an incremental compiler for Scala.
  • sbt/sbt, this repository hosts modules that implement 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, and Contributor's guide before opening a pull request.

If you're looking for an idea for a contribution, issues labeled with good first issue or help wanted might be good starting points.

If you would like to ask questions about sbt, there's sbt channel on Scala Discord, but it would be good to gather questions on Stackoverflow.

license

See LICENSE.