You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 8, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+21-1Lines changed: 21 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@ the notes of version [0.8.2](https://github.com/jrudolph/sbt-dependency-graph/tr
25
25
26
26
*`dependencyTree`: Shows an ASCII tree representation of the project's dependencies
27
27
*`dependencyBrowseGraph`: Opens a browser window with a visualization of the dependency graph (courtesy of graphlib-dot + dagre-d3).
28
+
*`dependencyBrowseTree`: Opens a browser window with a visualization of the dependency tree (courtesy of jstree).
28
29
*`dependencyList`: Shows a flat list of all transitive dependencies on the sbt console (sorted by organization and name)
29
30
*`whatDependsOn <organization> <module> <revision>?`: Find out what depends on an artifact. Shows a reverse dependency
30
31
tree for the selected module. The `<revision>` argument is optional.
@@ -38,11 +39,30 @@ the notes of version [0.8.2](https://github.com/jrudolph/sbt-dependency-graph/tr
38
39
*`ivyReport`: Lets ivy generate the resolution report for you project. Use
39
40
`show ivyReport` for the filename of the generated report
40
41
42
+
The following tasks also support the `toFile` subtask to save the contents to a file:
43
+
44
+
*`dependencyTree`
45
+
*`dependencyList`
46
+
*`dependencyStats`
47
+
*`dependencyLicenseInfo`
48
+
49
+
The `toFile` subtask has the following syntax:
50
+
51
+
```
52
+
<config>:<task>::toFile <filename> [-f|--force]
53
+
```
54
+
55
+
Use `-f` to force overwriting an existing file.
56
+
57
+
E.g. `test:dependencyStats::toFile target/depstats.txt` will write the output of the `dependencyStats` in the `test`
58
+
configuration to the file `target/depstats.txt` but would not overwrite an existing file.
59
+
41
60
All tasks can be scoped to a configuration to get the report for a specific configuration. `test:dependencyGraph`,
42
61
for example, prints the dependencies in the `test` configuration. If you don't specify any configuration, `compile` is
43
62
assumed as usual.
44
63
45
-
Note: If you want to run tasks with parameters from outside the sbt shell, make sure to put the whole task invocation in quotes, e.g. `sbt "whatDependsOn <org> <module> <version>"`.
64
+
Note: If you want to run tasks with parameters from outside the sbt shell, make sure to put the whole task invocation in
65
+
quotes, e.g. `sbt "whatDependsOn <org> <module> <version>"`.
0 commit comments