Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to read +— and \— in the dependencies output?

When I run the dependencies task, I see a dependency graph wherein some entries are preceded by +--- and some entries are preceded by \---. What do each of these two symbols mean?

As an example, when I run gradle :app:dependencies --configuration debugCompileClasspath for an Android application, I see an entry as follows:

+--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.10
|    +--- org.jetbrains.kotlin:kotlin-stdlib:1.6.10
|    |    +--- org.jetbrains:annotations:13.0
|    |    \--- org.jetbrains.kotlin:kotlin-stdlib-common:1.6.10
|    \--- org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.6.10
|         \--- org.jetbrains.kotlin:kotlin-stdlib:1.6.10

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

+--- marks the beginning of an expansion of the list on inner dependencies for the entry next to it.
In your case, it starts the list of the dependencies for org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.10. As you can see, the next line is a bit indented, that’s the first dependency of the parent org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.10.

\--- marks the end of the expansion of the list that was opened on that depth. In your case, \--- org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.6.10 is the last dependency from org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.10‘s list. And that dependency has only one inner dependency which is org.jetbrains.kotlin:kotlin-stdlib:1.6.10.

A lot of dependencies but I lack a better word. I hope I don’t confuse you even more 😀

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading