Hi, Let me start by admitting that I’m an absolute newbie to Gradle; in fact, I started using it only as part of learning “Cascading” which uses Gradle for build. When I’m trying to build, I’m getting the following exception. It appears that the dependency is not present in the local Maven repo and Gradle, for some reason, fails instead of downloading it. Option --refresh-dependencies does not help. I found two workarounds 1) Put mavenCentral() before mavenLocal() in the build file, or 2) Delete the failing group from Maven local. However, none of these are desirable because using Maven Central all the time just makes the build slower and user shouldn’t have to delete dependencies from Maven local to satisfy Gradle.
My development environment is: Mac OS X 10.8.4, Apple Java 1.6.0_51, Gradle 1.3/1.6 (both have the same issue).
FAILURE: Build failed with an exception. * What went wrong: Could not resolve all dependencies for configuration ':providedCompile'. > Artifact 'commons-httpclient:commons-httpclient:3.1@jar' not found.
Here’s a Gist to the build file. https://gist.github.com/abhijitsarkar/6145223
Any help is appreciated. If I missed to provide any information above, just let me know.