Visualize gradle configurations relation in a graph
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: visit this link to enlarge the image.
--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
./gradlew app:visualizeGradleConfig --target implementation
./gradlew app:visualizeGradleConfig --target implementation --reverse
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
./gradlew app:dumpGradleConfig