Gradle automates Java build dependency analysis, showing how libraries enter a project, which versions it selects, and which packages contribute to runtime size. section 8.2.2
Use the dependency report to:
- Trace an unexpectedly large dependency back to the shortest path from application code. section 8.2.2
- Inspect runtime dependencies, embedded libraries, reflection-heavy packages, and platform-specific native binaries. section 8.2.2
- Replace unnecessary or oversized dependencies with lighter alternatives when production targets are fixed. section 8.2.2
Inspect the runtime classpath
Run ./gradlew dependencies --configuration runtimeClasspath to list every runtime dependency and reveal how Gradle selected versions when libraries conflict. section 8.2.2
./gradlew dependencies --configuration runtimeClasspath
Explore the Gradle command for listing dependencies on the runtime classpath. section 8.2.2



