title: Why is this gradle flatDir example failing?
body: <p>I'm completely new to gradle. I've put the following build.gradle together as a means of seeing how dependencies get pulled from a flatDir repository. The 'localrepo' directory contains two files 'a.txt', and 'b.txt' and nothing else. When I run 'gradle dependencies' I get failures:</p>
  
  <pre><code>:dependencies
  
  ------------------------------------------------------------
  Root project
  ------------------------------------------------------------
  
  copytest
  +--- :a.txt: FAILED
  \--- :b.txt: FAILED
  
  BUILD SUCCESSFUL
  
  Total time: 5.506 secs
  </code></pre>
  
  <p>Why?</p>
  
  <p>Here's my build.gradle:</p>
  
  <pre><code>configurations {
    copytest
  }
  
  repositories {
    flatDir name: 'localRepository', dirs: 'localrepo'
  }
  
  dependencies {
    copytest ':a.txt'
    copytest ':b.txt'
  }
  
  task copyTask(type: Copy) {
    from configurations.copytest
    into 'result'
  }
  </code></pre>