concept dependency report in category gradle

appears as: dependency reports, dependency report, The dependency report
Gradle in Action - corrected 9052019

This is an excerpt from Manning's book Gradle in Action - corrected 9052019.

If you examine the dependency tree carefully, you’ll see that dependencies marked with an asterisk have been omitted. That means that the dependency manager selected either the same or another version of the library because it was declared as a transitive dependency of another top-level dependency. Interestingly, this is the case for the UberJar, so you don’t even have to declare it in your build script. The Ant tasks library will automatically make sure that the library gets pulled in. Gradle’s default resolution strategy for version conflicts is newest first—that is, if the dependency graph contains two versions of the same library, it automatically selects the newest. In the case of the library xml-apis, Gradle chooses version 1.3.03 over 1.0.b2, which is indicated by an arrow (->). As you can see, it’s very helpful to analyze the information exposed by the dependency report. When you want to find out which top-level dependency declares a specific transitive dependency and why a specific version of a library has been selected or omitted, the dependency report is a good place to start. Next, we’ll look at how to exclude transitive dependencies.