Gradle::dependencies

Updated 2021: In the context of 🐞CVE-2021-44228.

Lately I migrated Planets from Maven to Gradle. I frequently used the following command to check the dependencies of the project:

mvn -f planets/pom.xml dependency:tree

It took me some time to figure out how to list dependencies for Gradle modules. With a little help from stackoverflow What is the Gradle artifact dependency graph command? I finally found the Gradle equivalent:

gradle :planets:dependencies

While hunting Apache Log4j 2 in the Dependency hell I learned how to Viewing and debugging dependencies in Gradle based projects.

gradle dependencyInsight --dependency log4j-core

> Task :dependencyInsight
No dependencies matching given input were found in configuration ':compileClasspath'