Load dependency from maven

I am new to gradle.

I have saw some examples about java dependency like the following example that it will automatically download the jar file.

But my project will be a simply a zip file. I just want to download the zip file. I have already mentioned the type to be zip in the pom.xml. But it won’t download my file.

apply plugin: ‘java’ dependencies {

compile ‘commons-lang:commons-lang:2.6’ }

Questions:

  1. What is the flow when depend on a maven repository? It will first read the pom.xml and then download the zip file according to what mentioned in the pom.xml?

  2. How to dynamically load the dependency? e.g ‘commons-lang:commons-lang:2.6’ will have a dependency 'commons-lang:en:1.0" mentioned in the pom.xml . How to make it automatically download and loop the dependency list?

Thanks all

I have got my answer. Thank