sbt, the interactive build tool
Go to file
Ethan Atkins 379503a894 Restore watchOnTermination
At some point the watchOnTermination callback stopped working. I'm not
exactly sure how or why that happened but it is fairly straightforward
to restore. The one tricky thing was that the callback has the signature
(Watch.Action, _, _, _) => State, which requires propagating the action
to the failWatch command. The easiest way to do this was to add a
mutable field to the ContinuousState. This is rather ugly and reflects
some poor design choices but a more comprehensive refactor is out of
the scope of this fix.

This commit adds a scripted test that ensures that the callback is
invoked both in the successful and unsuccessful watch cases. In each
case the callback deletes a file and we ensure that the file is indeed
absent after the watch exits.
2022-04-09 15:49:10 -07:00
.github Bump actions/cache from 2.1.7 to 3 2022-04-01 16:00:38 +09:00
client Change remaining sbtc to sbtn 2020-08-15 09:35:59 -07:00
core-macros/src/main/scala/sbt/internal/util/appmacro Use fully qualified name in the macro 2021-03-09 11:55:29 -05:00
dependency-tree/src/main/scala/sbt/plugins Split to MiniDependencyTreePlugin 2020-09-22 21:21:01 -04:00
internal Merge pull request #6839 from sbt/1.7.x 2022-03-18 12:17:26 -04:00
launch launcher 1.3.3 2021-07-11 02:04:48 -04:00
launcher-package launcher: debian package to depend on curl | wget 2022-02-21 17:38:18 +09:00
licenses move remaining pieces of sbt subproject to sbt_pending and fix notices 2010-09-21 21:55:50 -04:00
main Restore watchOnTermination 2022-04-09 15:49:10 -07:00
main-actions/src Fix #6738: register all forked process 2021-12-06 09:12:38 +01:00
main-command/src Load credentials from SBT_CREDENTIALS (#6724) 2021-11-27 02:44:49 -05:00
main-settings/src Merge pull request #6711 from xuwei-k/fix-scala-2-13-warn 2021-11-14 21:53:57 -05:00
notes Enable the asciiGraphWidth setting to the dependencyTree tasks. #5962 2021-10-19 02:15:31 +09:00
project Try fix CI: Build and test (6) 2022-03-08 18:19:20 +01:00
protocol/src/main feat: add optional framework field to the bsp 2022-03-04 10:53:25 +01:00
run Fix #6738: register all forked process 2021-12-06 09:12:38 +01:00
sbt-app/src Restore watchOnTermination 2022-04-09 15:49:10 -07:00
scripted-plugin/src/main/scala/sbt -Xfatal-warnings in most subprojects 2018-09-18 11:47:55 -04:00
scripted-sbt-old/src/main/scala/sbt/test Move scripted-sbt-old ScriptedTests file 2020-11-03 09:02:18 -08:00
scripted-sbt-redux Make javaHome that forks scripted tests configurable 2021-10-05 00:35:56 +09:00
server-test/src Add test to verify server doesn't send notifications 2022-03-21 22:14:44 +09:00
src/main/conscript sbt 1.3.0 2019-09-04 01:24:08 -04:00
tasks fix Scala 2.13 warnings 2021-11-14 22:59:34 +09:00
tasks-standard fix Scala 2.13 warnings 2021-11-14 22:59:34 +09:00
testing Merge pull request #6839 from sbt/1.7.x 2022-03-18 12:17:26 -04:00
util-cache Merge pull request #6711 from xuwei-k/fix-scala-2-13-warn 2021-11-14 21:53:57 -05:00
util-tracking Merge pull request #6711 from xuwei-k/fix-scala-2-13-warn 2021-11-14 21:53:57 -05:00
vscode-sbt-scala https://www.apple.com 2019-09-05 14:11:07 -04:00
zinc-lm-integration/src Update scalatest 2021-11-14 22:03:59 +09:00
.appveyor.yml Update Jave version to 1.8.0-275 on AppVeyoer 2021-02-15 22:46:06 -05:00
.gitattributes Fix line endings in msi 2021-11-19 20:41:39 -05:00
.gitignore Remove log4j 2021-12-03 17:13:29 +00:00
.java-version Configure JVM 1.8 in .java-version 2016-10-07 08:48:23 -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
.scalafmt.conf SourcePositionMacro for Scala 3 2021-11-16 16:32:31 +09:00
CONTRIBUTING.md https://www.scala-sbt.org 2019-09-05 14:11:13 -04:00
DEVELOPING.md Follow up on Scala 2.12.15 bump 2021-09-18 18:08:26 -04:00
LICENSE Apache License 2.0 2018-09-14 03:38:58 -04:00
NOTICE Apache License 2.0 2018-09-14 03:38:58 -04:00
PROFILING.md fix typo 2018-07-08 22:18:57 +09:00
README.md Update CI status badge in README 2022-01-17 13:27:21 +09:00
SUPPORT.md Split support into SUPPORT.md 2018-04-25 14:55:09 +01:00
build.sbt sbt 1.6.2 2022-01-31 23:25:20 -05:00
reset.sh 1.0.3-SNAPSHOT 2017-09-16 15:52:58 -04:00
sbt Merge pull request #6839 from sbt/1.7.x 2022-03-18 12:17:26 -04: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 Gitter Chat

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.