Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle dependency tree, what does the (*) mean?

I am just wondering what does the (*) mean under the dependency tree for Gradle. I have been searching online and could not find any answers.

+--- org.apache.httpcomponents:httpclient:4.2.6 -> 4.5 (*)

    |    +--- org.apache.jena:apache-jena-libs:2.12.1
    |    |    +--- org.apache.jena:jena-tdb:1.1.1
    |    |    |    +--- org.apache.jena:jena-arq:2.12.1
    |    |    |    |    +--- org.apache.jena:jena-core:2.12.1
    |    |    |    |    |    +--- org.slf4j:slf4j-api:1.7.6 -> 1.7.10
    |    |    |    |    |    +--- org.apache.jena:jena-iri:1.1.1
    |    |    |    |    |    |    +--- org.slf4j:slf4j-api:1.7.6 -> 1.7.10
    |    |    |    |    |    |    \--- log4j:log4j:1.2.17
    |    |    |    |    |    +--- xerces:xercesImpl:2.11.0
    |    |    |    |    |    |    \--- xml-apis:xml-apis:1.4.01
    |    |    |    |    |    \--- log4j:log4j:1.2.17
    |    |    |    |    +--- org.apache.httpcomponents:httpclient:4.2.6 -> 4.5 (*)
    |    |    |    |    +--- com.github.jsonld-java:jsonld-java:0.5.0
    |    |    |    |    |    +--- com.fasterxml.jackson.core:jackson-core:2.3.3 -> 2.5.1
    |    |    |    |    |    +--- com.fasterxml.jackson.core:jackson-databind:2.3.3 -> 2.5.1 (*)
    |    |    |    |    |    \--- org.slf4j:jcl-over-slf4j:1.7.7 -> 1.7.10 (*)
like image 242
Hong Wei Wang Avatar asked Dec 11 '15 19:12

Hong Wei Wang


People also ask

How do you read a Gradle dependency tree?

In Gradle dependencies are libraries required to build your code. Each of these libraries may have their own dependencies, adding transitive dependencies to your project. This structure is called the Gradle dependency tree, with its own rules on dependency conflict resolution and more.

What does -> mean in Gradle dependency tree?

It means that dependency graph contains multiple dependencies with the same group and module but different versions for e.g. org.

How do I list all Gradle dependencies?

If you want to visualize your dependencies in a graph you can use gradle-dependency-graph-generator plugin. Generally the output of this plugin can be found in build/reports/dependency-graph directory and it contains three files (.


2 Answers

(*) - dependencies omitted (listed previously)

Should be displayed under your dependency tree.

The dependencies of the marked dependency are omitted for readability because they were already listed higher up in the dependency graph output.

also, (c) - dependency constraint

like image 65
RaGe Avatar answered Oct 17 '22 08:10

RaGe


Dependencies with the same coordinates that can occur multiple times in the graph are omitted and indicated by an asterisk(*). Dependencies that had to undergo conflict resolution render the requested and selected version separated by a right arrow character(->).

gradle manual: https://docs.gradle.org/current/userguide/viewing_debugging_dependencies.html

like image 20
user15570673 Avatar answered Oct 17 '22 09:10

user15570673