I am completely new to gradle. I put the following build.gradle file together to see how dependencies are retrieved from the flatDir repository. The directory 'localrepo' contains two files 'a.txt' and 'b.txt' and nothing else. When I run the 'gradle dependencies, I get crashes:
:dependencies ------------------------------------------------------------ Root project ------------------------------------------------------------ copytest +--- :a.txt: FAILED \--- :b.txt: FAILED BUILD SUCCESSFUL Total time: 5.506 secs
Why?
Here is 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' }
source share