title: Gradle dependencies local jar file
body: <p>I have problem with include local jar file.</p>
  
  <p>I have two projects:</p>
  
  <pre><code>ProjectA
  
  ProjectB
  
    --libs
  
     ----jgrapht-jdk1.6.jar
  </code></pre>
  
  <p>My build file include (This is the part that concerns projectB):</p>
  
  <pre><code>project(':ProjectB') {
  
  apply plugin: 'java'
  repositories {
      mavenCentral()
  }
  configurations {
      compileOnly
  }
  sourceCompatibility = JavaVersion.VERSION_1_6
  targetCompatibility = JavaVersion.VERSION_1_6
  dependencies {
      compileOnly files('libs/jgrapht-jdk1.6.jar')
      compile 'org.simpleframework:simple-xml:2.7@jar'       
  }}
  </code></pre>
  
  <p>I run command gradlew -q dependencies and see result</p>
  
  <hr>
  
  <h2>Project :ProjectB</h2>
  
  <pre><code>archives - Configuration for archive artifacts.
  No dependencies
  
  compile - Compile classpath for source set 'main'.
  \--- org.simpleframework:simple-xml:2.7
  
  compileOnly
  No dependencies
  
  default - Configuration for default artifacts.
  \--- org.simpleframework:simple-xml:2.7
  
  runtime - Runtime classpath for source set 'main'.
  \--- org.simpleframework:simple-xml:2.7
  
  testCompile - Compile classpath for source set 'test'.
  \--- org.simpleframework:simple-xml:2.7
  
  testRuntime - Runtime classpath for source set 'test'.
  \--- org.simpleframework:simple-xml:2.7
  
  Line compile 'org.simpleframework:simple-xml:2.7@jar' - working fine,
   but line compileOnly files('libs/jgrapht-jdk1.6.jar') don't work.
  </code></pre>
  
  <p>I use gradle 1.8, Windows 7 x64
  Tell me please where I made a mistake.</p>