sbt, the interactive build tool
Go to file
Eugene Yokota ac4ba55e9e fix: Fix root project detection
**Problem**
Whether a subproject is root or not is currently detected by
comparing getCanonicalFile against the build base directory.
Problem is that often the root project uses "." as the directory,
and getting the canonical file works ok for the current build,
but it breaks when loading `ProjectRef`.
There might be other bugs related to the root project detection.

**Solution**
This factors out `isRootPath` function that's aware of the build base.

This PR adds the repro test prepared by xuwei-k.
2024-12-02 03:15:35 -05:00
.github Contraband 0.7.0 2024-10-27 16:21:18 -04:00
buildfile/src Refactor slash syntax to mostly use methods 2024-11-25 04:54:40 -05:00
client Bye jansi 2024-11-07 22:07:07 -08:00
core-macros/src refactor: Update Scala 3 syntax 2024-10-27 23:55:30 -04:00
dependency-tree/src/main/scala/sbt/plugins Reduce settings created by dependency-tree plugins 2024-11-12 11:51:31 +01:00
internal remove more implicit. use given and using 2024-11-18 14:39:00 +09:00
launch Transfer copyright to Scala Center 2023-06-20 16:39:07 +02:00
launcher-package Merge pull request #7800 from Friendseeker/bump-sbt-sbt-io 2024-10-21 21:42:03 -04:00
licenses move remaining pieces of sbt subproject to sbt_pending and fix notices 2010-09-21 21:55:50 -04:00
lm-core use `given` instead of `implicit val` 2024-11-17 17:35:23 +09:00
lm-coursier remove implicit params. change to using 2024-11-18 06:49:22 +09:00
lm-ivy/src remove more implicit. use given and using 2024-11-18 14:39:00 +09:00
main fix: Fix root project detection 2024-12-02 03:15:35 -05:00
main-actions/src remove more implicit. use given and using 2024-11-18 14:39:00 +09:00
main-command/src refactor: Update Scala 3 syntax 2024-10-27 23:55:30 -04:00
main-settings/src Refactor RefThenConfig to be an opaque type 2024-11-26 04:55:08 -05:00
notes Merge branch '1.10.x' into wip/merge-1.10.x 2024-05-07 04:39:25 -04:00
project remove unused dependencies in project/Dependencies.scala 2024-12-02 07:51:16 +09:00
protocol/src/main use `given` instead of `implicit val` 2024-11-17 17:35:23 +09:00
run remove implicit params. change to using 2024-11-18 06:49:22 +09:00
sbt-app/src fix: Fix root project detection 2024-12-02 03:15:35 -05:00
sbt-remote-cache/src/main/scala/sbt refactor: Update Scala 3 syntax 2024-10-27 23:55:30 -04:00
scripted-sbt refactor: Update Scala 3 syntax 2024-10-27 23:55:30 -04:00
scripts Fix lm-coursier scripted 2024-10-11 14:30:55 +02:00
server-test/src use `given` instead of `implicit val` 2024-11-17 17:35:23 +09:00
src/main/conscript Move sources from sbt-projectmatrix 2024-09-17 17:00:04 +02:00
tasks refactor: Update Scala 3 syntax 2024-10-27 23:55:30 -04:00
tasks-standard remove implicit params. change to using 2024-11-18 06:49:22 +09:00
testing use `given` instead of `implicit val` 2024-11-17 17:35:23 +09:00
util-cache remove more implicit. use given and using 2024-11-18 14:39:00 +09:00
util-collection remove more implicit. use given and using 2024-11-18 14:39:00 +09:00
util-tracking remove more implicit. use given and using 2024-11-18 14:39:00 +09:00
zinc-lm-integration/src remove more implicit. use given and using 2024-11-18 14:39:00 +09: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 Fix server completion tests 2024-03-19 17:06:09 +01:00
.gitmodules Move metadata to lm-coursier/metadata 2024-10-09 09:44:42 +02:00
.java-version Configure JVM 1.8 in .java-version 2016-10-07 08:48:23 -05: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 2024-10-22 19:58:21 +09:00
CONTRIBUTING.md Minor updates on development guide 2023-10-21 21:00:31 -04:00
DEVELOPING.md SBT -> sbt 2024-10-19 21:52:20 -07: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 Merge remote-tracking branch 'lm/wip/sbt-2.x' into 2.x-lm-coursier 2024-10-09 08:50:03 +02:00
SUPPORT.md Transfer copyright to Scala Center 2023-06-20 16:39:07 +02:00
build.sbt Bye jansi 2024-11-07 22:07:07 -08:00
reset.sh 1.0.3-SNAPSHOT 2017-09-16 15:52:58 -04:00
sbt Bump sbt & sbt-io version 2024-10-21 16:38:30 -07: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 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/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.