title: Building a Fat jar with local dependencies Gradle
body: <p>I have a build.gradle file as follows</p>
  
  <pre><code>buildscript {
      repositories { jcenter() }
  }
  
  dependencies {
      compile 'io.dropwizard:dropwizard-core:0.8.2'
      compile 'io.dropwizard:dropwizard-testing:0.8.2'
  }
  </code></pre>
  
  <p>When I run <code>gradle build</code> it downloads the dropwizard dependencies from maven repository and builds a fat jar. Every time I pull the code in a new development environment it fetches from the maven central repo. But some of the development machines do not have internet access, to build in these machines, I thought if I could create a folder called <code>libs</code> in the source code root folder and use this folder as to load the jar files, like</p>
  
  <pre><code>repositories {
     flatDir {
         dirs 'libs'
     }
  }
  </code></pre>
  
  <p>Is it possible to do? Where to find the downloaded jars from maven central in my local machine, so that I can copy them into the libs folder (dropwizard 0.8.2 jar)</p>