./gradlew build Unable to Resolve Dependencies
<p>I'm working on a git project (I cloned it using SourceTree) that uses a gradle wrapper for building, testing </p>

<p><em>By the way, I was told I had to change the names of a bunch of the projects, dependencies etc. to be allowed to ask the question, so sorry for the weird, generic names</em></p>

<p>The only problem is, I'm unable to build it. Whenever I run <code>./gradlew build</code>, I get this error:</p>

<pre><code>Normal Build:

    :project-name:compileJava

    FAILURE: Build failed with an exception.

    * What went wrong:
    Could not resolve all dependencies for configuration ':project-name:compileClasspath'.
    &gt; Could not resolve bar-group:common:0.1-SNAPSHOT.
      Required by:
          foo-project:project-name:0.1
       &gt; Could not resolve bar-group:common:0.1-SNAPSHOT.
          &gt; Unable to load Maven meta-data from http://valid.artifactory.url//artifactory/libs-release/bar-group/common/0.1-SNAPSHOT/maven-metadata.xml.
             &gt; Could not GET 'http://valid.artifactory.url//artifactory/libs-release/bar-group/common/0.1-SNAPSHOT/maven-metadata.xml'.
                &gt; org.apache.http.client.ClientProtocolException (no error message)
    &gt; Could not resolve bar-group:clients:0.1-SNAPSHOT.
      Required by:
          foo-project:project-name:0.1
       &gt; Could not resolve bar-group:clients:0.1-SNAPSHOT.
          &gt; Unable to load Maven meta-data from http://valid.artifactory.url//artifactory/libs-release/bar-group/clients/0.1-SNAPSHOT/maven-metadata.xml.
             &gt; Could not GET 'http://valid.artifactory.url//artifactory/libs-release/bar-group/clients/0.1-SNAPSHOT/maven-metadata.xml'.
                &gt; org.apache.http.client.ClientProtocolException (no error message)

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

    BUILD FAILED

    Total time: 7.418 secs
</code></pre>

<p>Nobody else in the project is getting this error (there's about 50 people using it).</p>

<p>From what I can tell, gradle is trying to find maven-metadata.xml and then throwing a fit when it can't find it (because it doesn't exist). I've had a talk with one of the admins of the project and he said that it shouldn't need to look for it (he also said that clones on other people's machines were looking for it, not finding it, then just grabbing the dependencies some other way).</p>

<p>When you go to <code>http://valid.artifactory.url//artifactory/libs-release/bar-group/common/0.1-SNAPSHOT/</code> you can see a common-0.1-SNAPSHOT.jar and .pom, with sha1 and md5 hashes of each (the url is obviously different, just take my word for it :D).</p>

<p>There's a bunch I've done to try and fix it. I've made a whole bunch of fresh clones, I've uninstalled and reinstalled jdk, I've installed Maven (then uninstalled).</p>

<p>I'm on a Macbook Air 11", running El Capitan 10.11.6</p>

<p>My Java version is:</p>

<pre><code>java version "1.8.0_102"
Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)
</code></pre>

<p>By the way, I'm fairly new to java/gradle so I apologise if there's some really stupid thing I've done wrong that's causing this. Also, I have extremely limited access to any admin stuff with the project.</p>

<p>For extra detail, there's the <a href="http://pastebin.com/SkiVk9NW" rel="nofollow">build.gradle file</a> I'm using, the output of <a href="http://pastebin.com/Sc1ZKSpT" rel="nofollow">./gradlew build --debug</a> and the output of <a href="http://pastebin.com/6qzEDPmT" rel="nofollow">./gradlew build --stacktrace</a>.</p>