I’ve been using Gradle in Android Studio and I’m interested in understanding how it downloads dependencies that are added to my
For example, my understanding is that when I add
compile 'com.squareup.retrofit2:retrofit:2.1.0' and sync my project, Gradle will download retrofit-2.1.0.jar from jcenter and add the
.jar to my project as an external library.
It also looks like Gradle parses the
retrofit-2.1.0.pom file in order to find and download retrofit’s dependencies, such as OkHttp, and adds those
.jar files to my project as well.
I’ve been going through the Gradle source code on github looking for the class that downloads the
.jar from the web, but haven’t been able to find anything. Any links to the source code or documentation that covers understanding the process of downloading dependencies would be helpful.