{"id":24587387,"url":"https://github.com/ryru/dependency-graph-analyser","last_synced_at":"2026-01-11T02:57:45.967Z","repository":{"id":179927858,"uuid":"658943263","full_name":"ryru/dependency-graph-analyser","owner":"ryru","description":"CLI tool for analysing and visualising Gradle dependencies in multi-module projects.","archived":false,"fork":false,"pushed_at":"2024-09-15T14:54:02.000Z","size":401,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-16T06:35:26.884Z","etag":null,"topics":["analysis","gradle","graph","multi-project"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryru.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-26T20:27:09.000Z","updated_at":"2024-09-15T14:47:27.000Z","dependencies_parsed_at":"2023-10-24T21:25:56.857Z","dependency_job_id":"2af7f5ef-51cf-40fe-bd0b-e4e67d420303","html_url":"https://github.com/ryru/dependency-graph-analyser","commit_stats":null,"previous_names":["ryru/module-dependency-graph"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryru%2Fdependency-graph-analyser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryru%2Fdependency-graph-analyser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryru%2Fdependency-graph-analyser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryru%2Fdependency-graph-analyser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryru","download_url":"https://codeload.github.com/ryru/dependency-graph-analyser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235398442,"owners_count":18983798,"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":["analysis","gradle","graph","multi-project"],"created_at":"2025-01-24T06:29:08.441Z","updated_at":"2025-10-05T12:31:04.584Z","avatar_url":"https://github.com/ryru.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DGA: Dependency Graph Analyser\n\n[![Verify project](https://github.com/ryru/dependency-graph-analyser/actions/workflows/verify.yml/badge.svg)](https://github.com/ryru/dependency-graph-analyser/actions/workflows/verify.yml)\n[![Build project](https://github.com/ryru/dependency-graph-analyser/actions/workflows/build.yml/badge.svg)](https://github.com/ryru/dependency-graph-analyser/actions/workflows/build.yml)\n\nAnalyse and visualise module dependencies in Gradle projects.\n\nIn large and complex Gradle projects with many dependencies between the modules, it can be difficult\nto keep track of everything. `dga` can analyse projects and visualise the dependencies between the\nindividual modules with the help of [Mermaid](https://mermaid.js.org/).\n\n```mermaid\ngraph TD\n    vd2a57d(app) --\u003e|implementation| va74ad8(core)\n    vd2a57d(app) --\u003e|implementation| v1bc49d(importer)\n    va02543(connector-plugin) --\u003e|compileOnly| v91bd8e(connector-model)\n    v1bc49d(importer) --\u003e|implementation| v91bd8e(connector-model)\n    v1bc49d(importer) --\u003e|implementation| va74ad8(core)\n```\n\nFeatures:\n\n* Analyses Gradle projects in both Kotlin and Groovy DSLs\n* Summarises the project modules and dependencies\n* Generates text-based graphs which are compatible with Mermaid charts\n* Filter only relevant modules or configurations\n* Include transitive project dependencies\n\n## Usage\n\nPrint the CLI help with `dga --help`:\n\n```\ndga --help\nUsage: dga [\u003coptions\u003e] \u003cgradleproject\u003e\n\n  Analyse the module dependency graph of a Gradle project.\n\nFilter Options:\n\n  Filter control what to analyse. If several filters are set, dependencies must fulfill all of them. Without any set filter the whole Gradle project will be processed.\n\n  Use an '*' asterisk to specify multiple modules or configurations without writing each of them.\n\n  E.g.:\n   • \"importer-*\" resolves to all modules starting with 'importer-'.\n   • \"*-exporter\" resolves to all modules ending with '-exporter'.\n   • \"file-*-exporter\" resolves to all modules starting with 'file-' and ending with '-exporter'.\n\n  -m=\u003cmodule,...\u003e         Module names either in origin or destination. Specify multiple comma-separated module names.\n  -o=\u003cmodule,...\u003e         Module names in origin. Specify multiple comma-separated module names.\n  -d=\u003cmodule,...\u003e         Module names in destination. Specify multiple comma-separated module names.\n  -c=\u003cconfiguration,...\u003e  Configurations used in dependencies. Specify multiple comma-separated configuration names.\n  -t, --transitive        If set, also include transitive module dependencies. This applies only if a module filter is active.\n\nDisplay Options:\n\n  Options controlling how to output the analysed data. Display options can not be combined.\n\n  --modules         Shows all modules of the project applying to the specified filters.\n  --configurations  Displays all configurations applying to the specified filters and sorted by frequency of occurrence.\n  --mermaid-graph   Generate the Mermaid graph chart source for the dependencies fulfilling the filter criteria.\n  --chart-mermaid   Generate the Mermaid graph chart source for the dependencies fulfilling the filter criteria. (deprecated)\n\nOptions:\n  -h, --help  Show this message and exit\n\nArguments:\n  \u003cgradleproject\u003e  Path of the Gradle project directory\n\n```\n\n### Quick Start\n\nDownload and setup this project:\n\n```\ngit clone https://github.com/ryru/dependency-graph-analyser.git\ncd dependency-graph-analyser/\n./gradlew clean install\n```\n\n1. Download the GitHub code repository\n2. Change into code directory\n3. Make a clean installation of the application (application will be available in the directory\n   `./app/build/install/dga/bin/dga`)\n\nGet an overview of this project by running `dga .`:\n\n```\n./app/build/install/dga/bin/dga .\n\nAnalyse project \"dependency-graph-analyser\"\n     5 modules\n     5 dependency configurations (2 unique dependency configurations)\n \n```\n\n### Create a Mermaid Chart\n\nUse `dga . --chart-mermaid` to generate a Mermaid chart of this project:\n\n```\n./app/build/install/dga/bin/dga . --mermaid-graph\n\nAnalyse project \"dependency-graph-analyser\"\n     5 modules\n     5 dependency configurations (2 unique dependency configurations)\n\ngraph TD\n    vd2a57d(app) --\u003e|implementation| va74ad8(core)\n    vd2a57d(app) --\u003e|implementation| v1bc49d(importer)\n    va02543(connector-plugin) --\u003e|compileOnly| v91bd8e(connector-model)\n    v1bc49d(importer) --\u003e|implementation| v91bd8e(connector-model)\n    v1bc49d(importer) --\u003e|implementation| va74ad8(core)\n\n```\n\n#### Filter Modules\n\nUse `dga . -o app --mermaid-graph` to generate a Mermaid graph chart of this project only\ncontaining the dependencies originating from the module `app`:\n\n```\n./app/build/install/dga/bin/dga . -o app --mermaid-graph\n\nAnalyse project \"dependency-graph-analyser\"\n     5 modules\n     5 dependency configurations (2 unique dependency configurations)\n\nApplying filter on data results in:\n     3 modules\n     2 dependency configurations (1 unique dependency configurations)\n\ngraph TD\n    vd2a57d(app) --\u003e|implementation| va74ad8(core)\n    vd2a57d(app) --\u003e|implementation| v1bc49d(importer)\n\n```\n\n- Use `--transitive` to also include transitive dependencies.\n\n## How DGA works\n\nSee [HowItWorks.md](HOWITWORKS.md)\n\n## Contribution\n\nPull requests are welcome! Check [CONTRIBUTING.md](CONTRIBUTING.md) before starting any work.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryru%2Fdependency-graph-analyser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryru%2Fdependency-graph-analyser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryru%2Fdependency-graph-analyser/lists"}