title: Confused about dependencies in local respository(gradle)
body: <p>I trying to compile and package up my java application but I am facing issues when trying to specify my local repository in which I have my jars that will be used as dependencies. I have stored all the jars I need for my application in '/home/test/lib'. What I have as my build.gradle file is as follows:</p>
  
  <pre><code>apply plugin:'application'
  apply plugin:'java'
  apply plugin:'idea'
  
      def repositoryPath = '/home/test/lib'
  
      repositories {
          repositoryPath
      }
  
  
  
  dependencies {
              "org.springframework:spring-orm:3.0.2.RELEASE"
              "org.springframework:spring-context-support:3.0.2.RELEASE"
              'commons-dbcp:commons-dbcp:1.4'
              'org.apache.ibatis:ibatis-sqlmap:2.3.4.726'
              'commons-dbutils:commons-dbutils:1.3'
              'joda-time:joda-time:1.6'
              'commons-lang:commons-lang:2.5'
              'com.google.collections:google-collections:1.0'
  }
  
  jar {
      baseName = 'testJar'
  }
  
  mainClassName = "com.some.test.testRunner"
  </code></pre>
  
  <p>When I run gradle build, I am getting "package * does not exist" errors.</p>
  
  <p>My assumption is that gradle is not finding the requisite external jars in my lib folder. Can somebody point out what I may be doing wrong here.</p>
  
  <p>Thanks</p>