/Gradle-Configuration-Visualizer

Visualize Gradle project configurations and identify resolveable configurations

Primary LanguageKotlin

Gradle Configuration Visualizer

Visualize gradle configurations relation in a graph

Getting started

add this to your gradle project plugin block

plugins {
    ...
    id 'dev.rifqimfahmi.gcv.plugin'
}

run visualizeGradleConfig task to generate entire module configuration graph visualization in an SVG file:

./gradlew app:visualizeGradleConfig

example output of gradle configurations in an Android module: all config visit this link to enlarge the image.

Graph task options

--reverse           Reverse the graph to find the dependents of specified target
--show-resolved     Show symbol on the node wether the configuration can be resolved or not
--target            Specific config dependency you want to check

Examples

Show me parent Configurations of implementation on app module

./gradlew app:visualizeGradleConfig --target implementation

all config

Show me all Configurations who extend implementation on app module

./gradlew app:visualizeGradleConfig --target implementation --reverse

all config

Show me all Configurations who extend implementation on app module and tell me if it can be resolved

./gradlew app:visualizeGradleConfig --target implementation --reverse --show-resolved

all config

Just dump all configurations on app module

./gradlew app:dumpGradleConfig