Finding the reason for dependency inclusion into a configuration.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 17 Jan 2021 17:45:23 +0200
changeset 2502 45513923d474
parent 2501 efc16f87ae94
child 2503 ef63c4afe404
Finding the reason for dependency inclusion into a configuration.
gradle.rst
--- a/gradle.rst	Tue Jan 12 09:55:46 2021 +0200
+++ b/gradle.rst	Sun Jan 17 17:45:23 2021 +0200
@@ -303,13 +303,23 @@
 List project dependencies
 =========================
 
-List of project execution dependencies (it also download dependencies)::
+List of project dependencies (it also downloads dependencies) for all configurations::
 
   $ gradle dependencies
-  $ gradle dependencies --configuration compile
   $ gradle dependencies -p $SUBPROJ
   $ gradle :$SUBPROJ:dependencies
-  $ gradle :$SUBPROJ:dependencies --configuration testCompile
+
+Limiting configuration::
+
+  gradle dependencies --configuration compileClasspath
+  gradle :$SUBPROJ:dependencies --configuration testCompileClasspath
+
+Finding the reason for dependency inclusion into a configuration::
+
+  mygradle dependencyInsight --dependency com.netflix.ribbon --configuration runtimeClasspath
+
+https://docs.gradle.org/current/userguide/viewing_debugging_dependencies.html
+  Viewing and debugging dependencies.
 
 List of project plugin dependencies::