sbt, the interactive build tool
Go to file
Eugene Yokota a549e79c1d Throw when test framework cannot be loaded due to MatchError or NoClassDefFoundError
Problem
-------
In some situations like Dotty Community Build, sbt version is
mechanically upgraded on an old commit without humans checking the log.
For reasons we're not completely sure (likely change in ClassLoader
structure) sbt 1.6.x started to fail to load test frameworks during
tests, but since the failure of the test framework loading doesn't fail
the task, this silently succeeded the builds.

Solution
--------
On MatchError and NoClassDefFound Error, rethrow the exception.
Note that ClassNotFoundException is considered ok since we have
predefined test frameworks listed in sbt, which often are not included
in the users' classpath.
2022-01-31 16:37:38 -05:00
.github SourcePositionMacro for Scala 3 2021-11-16 16:32:31 +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 Load credentials from SBT_CREDENTIALS (#6724) 2021-11-27 02:44:49 -05:00
launch launcher 1.3.3 2021-07-11 02:04:48 -04:00
launcher-package Add test 2021-11-27 21:19:38 -05:00
licenses move remaining pieces of sbt subproject to sbt_pending and fix notices 2010-09-21 21:55:50 -04:00
main Use lazy val 2021-12-28 23:45:04 -05: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 log4j 2.17.1 2021-12-28 23:07:39 -05:00
protocol/src/main Ensure sbtConfig argv does not need sbt in PATH 2021-12-26 01:47:21 -05:00
run Fix #6738: register all forked process 2021-12-06 09:12:38 +01:00
sbt-app/src Load credentials from SBT_CREDENTIALS (#6724) 2021-11-27 02:44:49 -05: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 Fixes tab completion of global keys 2021-11-16 19:23:25 -05: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 Throw when test framework cannot be loaded due to MatchError or NoClassDefFoundError 2022-01-31 16:37:38 -05: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 Drop sbt-launch.jar from Linux distro 2021-04-24 17:31:02 -04: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 travis-ci badge. s/.org/.com/ 2020-10-29 23:54:09 +09:00
SUPPORT.md Split support into SUPPORT.md 2018-04-25 14:55:09 +01:00
build.sbt Throw when test framework cannot be loaded due to MatchError or NoClassDefFoundError 2022-01-31 16:37:38 -05:00
reset.sh 1.0.3-SNAPSHOT 2017-09-16 15:52:58 -04:00
sbt sbt 1.6.1 2022-01-31 16:23:00 -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

Build Status 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.