...
I get some "Could not resolve all dependencies for configuration .... " error when building the project from source
There is probably some kind of corruption of your local maven repository (notably used for caching dependencies)This is a known issue with Gradle, see GRADLE-2369 for an explanation. It happens when an artifact exists in your local maven repository but it's missing the jar files.
Try cleaning it or at least removing the problematic dependency from your repository. The local maven repository is usually in the ~/.m2 directory