-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1192 from eed3si9n/wip/dependency-tree
Document dependencyTree
- Loading branch information
Showing
4 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
[Basic-Def]: Basic-Def.html | ||
[Scopes]: Scopes.html | ||
[Directories]: Directories.html | ||
[Organizing-Build]: Organizing-Build.html | ||
|
||
Multi project basics | ||
==================== | ||
|
||
While a simple program can start out as a single-project build, | ||
it's more common for a build to split into smaller, multiple subprojects. | ||
|
||
Each subproject in a build has its own source directories, generates | ||
its own JAR file when you run `packageBin`, and in general works like any | ||
other project. | ||
|
||
A project is defined by declaring a lazy val of type | ||
[Project](../../api/sbt/Project.html). For example, : | ||
|
||
```scala | ||
scalaVersion := "{{scala3_example_version}}" | ||
|
||
lazy val core = (project in file("core")) | ||
.settings( | ||
name := "core", | ||
) | ||
|
||
lazy val util = (project in file("util")) | ||
.dependsOn(core) | ||
.settings( | ||
name := "util", | ||
) | ||
``` | ||
|
||
The name of the val is used as the subproject's ID, which | ||
is used to refer to the subproject at the sbt shell. |