title: Minecraft [GRADLE] 1.7.2 - Cannot use external .jar?
body: <p>I'm using the apache library httpcomponents in my mod.
  So I have 7 jar files, that I've added in my buildpath on Eclipse.</p>
  
  <p>Then compile with eclipse works. When I launch my mod with eclipse it works.</p>
  
  <p>But when I use gradle build command, the custom buildpath isn't considered.</p>
  
  <p>I see I must modify the build.gradle file. I've tried ...</p>
  
  <p>Code: </p>
  
  <pre><code>dependencies {
      classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
      compile files('lib/httpcomponents-client/commons-codec-1.6.jar')
      compile files('lib/httpcomponents-client/commons-logging-1.1.3.jar')
      compile files('lib/httpcomponents-client/fluent-hc-4.3.3.jar')
      compile files('lib/httpcomponents-client/httpclient-4.3.3.jar')
      compile files('lib/httpcomponents-client/httpclient-cache-4.3.3.jar')
      compile files('lib/httpcomponents-client/httpcore-4.3.2.jar')
      compile files('lib/httpcomponents-client/httpmime-4.3.3.jar')
  }
  </code></pre>
  
  <p>But it doesn't work:</p>
  
  <p><code>"Could not find method compile() for arguments [file collection] on org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@76454e71."</code></p>
  
  <p>And I've tried to use the code: </p>
  
  <pre><code>dependencies {
      classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
      runtime fileTree(dir: 'lib/httpcomponents-client', include: '*.jar')
  }
  </code></pre>
  
  <p>but I've an error too, "Could not find method runtime() for arguments [directory 'lib/httpcomponents-client'] on org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@40211960."</p>
  
  <p>Could you help me please?
  Thanks, and sorry for my bad english :/</p>
  
  <p>isador34</p>