{"id":13665245,"url":"https://github.com/sbt/sbt-dependency-graph","last_synced_at":"2025-12-17T23:08:25.941Z","repository":{"id":1856056,"uuid":"2780872","full_name":"sbt/sbt-dependency-graph","owner":"sbt","description":"sbt plugin to create a dependency graph for your project","archived":true,"fork":false,"pushed_at":"2021-04-02T21:00:54.000Z","size":552,"stargazers_count":1247,"open_issues_count":56,"forks_count":113,"subscribers_count":54,"default_branch":"master","last_synced_at":"2025-01-12T11:38:33.668Z","etag":null,"topics":["build-tool","dependencies","sbt","sbt-plugin","scala"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"systemjs/plugin-babel","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sbt.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-11-15T15:08:39.000Z","updated_at":"2025-01-08T17:45:20.000Z","dependencies_parsed_at":"2022-08-20T12:10:21.578Z","dependency_job_id":null,"html_url":"https://github.com/sbt/sbt-dependency-graph","commit_stats":null,"previous_names":["jrudolph/sbt-dependency-graph"],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbt%2Fsbt-dependency-graph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbt%2Fsbt-dependency-graph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbt%2Fsbt-dependency-graph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbt%2Fsbt-dependency-graph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sbt","download_url":"https://codeload.github.com/sbt/sbt-dependency-graph/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234563143,"owners_count":18853060,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["build-tool","dependencies","sbt","sbt-plugin","scala"],"created_at":"2024-08-02T06:00:30.674Z","updated_at":"2025-09-28T21:31:03.527Z","avatar_url":"https://github.com/sbt.png","language":"Scala","funding_links":[],"categories":["SOURCE"],"sub_categories":[],"readme":"# sbt-dependency-graph\n\n[![Join the chat at https://gitter.im/jrudolph/sbt-dependency-graph](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/jrudolph/sbt-dependency-graph?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\nVisualize your project's dependencies.\n\n**DEPRECATED: This plugin has been replaced by built-in sbt plugin in sbt 1.4+, please replace your dependency on this plugin with the following statement `addDependencyTreePlugin`**\n\n**Note: Under sbt \u003e= 1.3.x some features might currently not work as expected or not at all (like `dependencyLicenses`).**\n\n## Usage Instructions\n\nsbt-dependency-graph is an informational tool rather than one that changes your build, so you will more than likely wish to\ninstall it as a [global plugin] so that you can use it in any SBT project without the need to explicitly add it to each one. To do\nthis, add the plugin dependency to `~/.sbt/0.13/plugins/plugins.sbt` for sbt 0.13 or `~/.sbt/1.0/plugins/plugins.sbt` for sbt 1.0:\n\nFor sbt 1.4+ use:\n\n```scala\naddDependencyTreePlugin\n```\n\nFor sbt \u003c 1.3 use:\n\n```scala\naddSbtPlugin(\"net.virtual-void\" % \"sbt-dependency-graph\" % \"0.10.0-RC1\")\n```\n\nTo add the plugin only to a single project, put this line into `project/plugins.sbt` of your project, instead.\n\nThe plugin currently supports sbt versions \u003e= 0.13.10 and sbt 1.0.x. For versions supporting older versions of sbt see\nthe notes of version [0.8.2](https://github.com/jrudolph/sbt-dependency-graph/tree/v0.8.2#compatibility-notes).\n\n## Main Tasks\n\n * `dependencyTree`: Shows an ASCII tree representation of the project's dependencies\n * `dependencyBrowseGraph`: Opens a browser window with a visualization of the dependency graph (courtesy of graphlib-dot + dagre-d3).\n * `dependencyBrowseTree`: Opens a browser window with a visualization of the dependency tree (courtesy of jstree).\n * `dependencyList`: Shows a flat list of all transitive dependencies on the sbt console (sorted by organization and name)\n * `whatDependsOn \u003corganization\u003e \u003cmodule\u003e \u003crevision\u003e?`: Find out what depends on an artifact. Shows a reverse dependency\n   tree for the selected module. The `\u003crevision\u003e` argument is optional.\n * `dependencyLicenseInfo`: show dependencies grouped by declared license\n * `dependencyStats`: Shows a table with each module a row with (transitive) Jar sizes and number of dependencies\n * `dependencyGraphMl`: Generates a `.graphml` file with the project's dependencies to `target/dependencies-\u003cconfig\u003e.graphml`.\n   Use e.g. [yEd](http://www.yworks.com/en/products_yed_about.html) to format the graph to your needs.\n * `dependencyDot`: Generates a .dot file with the project's dependencies to `target/dependencies-\u003cconfig\u003e.dot`.\n    Use [graphviz](http://www.graphviz.org/) to render it to your preferred graphic format.\n * `dependencyGraph`: Shows an ASCII graph of the project's dependencies on the sbt console (only supported on sbt 0.13)\n * `ivyReport`: Lets ivy generate the resolution report for you project. Use\n   `show ivyReport` for the filename of the generated report\n\nThe following tasks also support the `toFile` subtask to save the contents to a file:\n\n * `dependencyTree`\n * `dependencyList`\n * `dependencyStats`\n * `dependencyLicenseInfo`\n\nThe `toFile` subtask has the following syntax:\n\n```\n\u003cconfig\u003e:\u003ctask\u003e::toFile \u003cfilename\u003e [-f|--force]\n```\n\nUse `-f` to force overwriting an existing file.\n\nE.g. `test:dependencyStats::toFile target/depstats.txt` will write the output of the `dependencyStats` in the `test`\nconfiguration to the file `target/depstats.txt` but would not overwrite an existing file.\n\nAll tasks can be scoped to a configuration to get the report for a specific configuration. `test:dependencyGraph`,\nfor example, prints the dependencies in the `test` configuration. If you don't specify any configuration, `compile` is\nassumed as usual.\n\nNote: If you want to run tasks with parameters from outside the sbt shell, make sure to put the whole task invocation in\nquotes,  e.g. `sbt \"whatDependsOn \u003corg\u003e \u003cmodule\u003e \u003cversion\u003e\"`.\n\n## Configuration settings\n\n * `filterScalaLibrary`: Defines if the scala library should be excluded from the output of the dependency-* functions.\n   If `true`, instead of showing the dependency `\"[S]\"` is appended to the artifact name. Set to `false` if\n   you want the scala-library dependency to appear in the output. (default: true)\n * `dependencyGraphMLFile`: a setting which allows configuring the output path of `dependency-graph-ml`.\n * `dependencyDotFile`: a setting which allows configuring the output path of `dependency-dot`.\n * `dependencyDotHeader`: a setting to customize the header of the dot file (e.g. to set your preferred node shapes).\n * `dependencyDotNodeLabel`: defines the format of a node label\n   (default set to `[organisation]\u003cBR/\u003e\u003cB\u003e[name]\u003c/B\u003e\u003cBR/\u003e[version]`)\n\nE.g. in `build.sbt` you can change configuration settings like this:\n\n```scala\nfilterScalaLibrary := false // include scala library in output\n\ndependencyDotFile := file(\"dependencies.dot\") //render dot file to `./dependencies.dot`\n```\n\n## Known issues\n\n * [#19]: There's an unfixed bug with graph generation for particular layouts. Workaround:\n   Use `dependency-tree` instead of `dependency-graph`.\n\n## License\n\nPublished under the [Apache License 2.0](http://en.wikipedia.org/wiki/Apache_license).\n\n[global plugin]: http://www.scala-sbt.org/0.13/tutorial/Using-Plugins.html#Global+plugins\n[global build configuration]: http://www.scala-sbt.org/0.13/docs/Global-Settings.html\n[#19]: https://github.com/jrudolph/sbt-dependency-graph/issues/19\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbt%2Fsbt-dependency-graph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsbt%2Fsbt-dependency-graph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbt%2Fsbt-dependency-graph/lists"}