I need to download the list of dependencies source jar files in all the modules in an Android project.
i tired the below code but it is giving error, as this works only for java projects and not working in android projects.
task copyToLib(type: Copy) {
into "libDownload"
from configurations.compile
}
build.dependsOn(copyToLib)
configurations.compile is giving error, my project have build variants.