title: How can I use Gradle to just download JARs?
body: <p>I have a non-standard project layout.</p>
  
  <p>How can I use Gradle to just download a bunch of JAR dependencies into a <code>lib</code> directory, under the same directory where <code>build.gradle</code> is? For now, I don't need it to do anything else.</p>
  
  <p>Here is what I have so far:</p>
  
  <pre><code>apply plugin: "java"
  
  repositories {
      mavenCentral()
  }
  
  buildDir = "."
  libsDirName = "lib"
  
  dependencies {
      runtime group: "...", name: "...", version: "..."
  }
  </code></pre>
  
  <p>If I run <code>gradle build</code>, it builds an empty JAR file in the <code>lib</code> directory, instead of downloading my dependencies there.</p>
  
  <p>Switching "lib" with "." in the properties does not work either.</p>