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:
:dependencies
------------------------------------------------------------
Root project
------------------------------------------------------------
copytest
+--- :a.txt: FAILED
\--- :b.txt: FAILED
BUILD SUCCESSFUL
Total time: 5.506 secs
Why?
Here's my build.gradle:
configurations {
copytest
}
repositories {
flatDir name: 'localRepository', dirs: 'localrepo'
}
dependencies {
copytest ':a.txt'
copytest ':b.txt'
}
task copyTask(type: Copy) {
from configurations.copytest
into 'result'
}