{"id":18015874,"url":"https://github.com/davidschreiber/inspector-graphetto","last_synced_at":"2025-03-26T18:31:30.295Z","repository":{"id":141933827,"uuid":"216636872","full_name":"davidschreiber/inspector-graphetto","owner":"davidschreiber","description":"Inspector Graphetto - Gradle task execution graph inspection and visualization plugin.","archived":false,"fork":false,"pushed_at":"2020-10-17T18:58:52.000Z","size":130,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T16:05:23.468Z","etag":null,"topics":["gradle","gradle-android-plugin","gradle-plugin","gradle-task","graphetto","inspector-graphetto","task-graph"],"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/davidschreiber.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2019-10-21T18:23:17.000Z","updated_at":"2022-02-07T00:38:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"4a55e07e-3a24-4769-9ca0-97b42b00752a","html_url":"https://github.com/davidschreiber/inspector-graphetto","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidschreiber%2Finspector-graphetto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidschreiber%2Finspector-graphetto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidschreiber%2Finspector-graphetto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidschreiber%2Finspector-graphetto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidschreiber","download_url":"https://codeload.github.com/davidschreiber/inspector-graphetto/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245712712,"owners_count":20660285,"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":["gradle","gradle-android-plugin","gradle-plugin","gradle-task","graphetto","inspector-graphetto","task-graph"],"created_at":"2024-10-30T04:15:18.028Z","updated_at":"2025-03-26T18:31:30.281Z","avatar_url":"https://github.com/davidschreiber.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Inspector Graphetto\n\n\u003cp\u003e\n\u003ca href=\"https://plugins.gradle.org/plugin/at.droiddave.graphetto/0.0.1-SNAPSHOT\" alt=\"Gradle Plugin\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/gradle%20plugin-0.0.1--SNAPSHOT-blue?logo=gradle\" /\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\n_Inspector Graphetto_ is a Gradle build plugin to inspect and visualize the task execution graph of your build. \n\n## Installation\n\nInside your top-level Gradle file add the Inspector Graphetto plugin:\n\n**In a `build.gradle` file (Groovy):**\n```groovy\nplugins {\n    id 'at.droiddave.graphetto' version '0.0.1'\n}\n```\n\n**In a `build.gradle.kts` Kotlin DSL file:**\n\n```kotlin \nplugins {\n    id(\"at.droiddave.graphetto\") version \"0.0.1\"\n}\n```\n\n## Usage\n\nSimply run a build, and Inspector Graphetto will write a GraphViz `.dot` file to `build/reports/taskGraph/graph.dot`.\n\n```shell\n$ ./gradlew assembleDebug\n$ cat build/reports/taskGraph/graph.dot\n\nstrict digraph G {\n  1 [ label=\":someOtherTask\" ];\n  2 [ label=\":someTask\" ];\n  2 -\u003e 1;\n}\n```\n\nYou can also print the entire task dependency graph to the console:\n\n```shell \n$ ./gradlew assembleDebug -Dat.droiddave.graphetto.consoleOutput=TREE\n\n ── :someTask\n    └── :someOtherTask\n\n\u003e Task :someOtherTask UP-TO-DATE\n\u003e Task :someTask UP-TO-DATE\n\nBUILD SUCCESSFUL in 92ms\n\n```\n\n## Configuration\n\nThe plugin registers an extension called `graphetto` on your project which can be used to configure the output:\n\n```groovy\ngraphetto {\n    outputFile = new File(buildDir, 'reports/my-task-graph.dot')\n    consoleOutput = at.droiddave.graphetto.ConsoleOutput.TREE\n}\n```\n\n### `outputFile`\n\nConfigures the path of the `.dot` output file containing the information about the task graph that was executed. Defaults to `reports/taskGraph/graph.dot`.  \n\n```groovy\ngraphetto {\n    outputFile = new File(buildDir, 'reports/my-task-graph.dot')\n}\n```\n\n### `consoleOutput`\n\nConfigures the type of console output produced by the plugin.\n\n* `TREE` will print the entire task dependency tree before after the configuration phase of your build.\n* `NONE` will not print any console output. This is the default.\n\n```groovy\ngraphetto {\n    consoleOutput = at.droiddave.graphetto.ConsoleOutput.TREE\n}\n```\n\nYou can also override the current configuration by passing the `-Dat.droiddave.graphetto.consoleOutput=TREE` option when invoking your build on the command line.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidschreiber%2Finspector-graphetto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidschreiber%2Finspector-graphetto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidschreiber%2Finspector-graphetto/lists"}