title: Gradle won't resolve dependency (Maven will)
body: <p>My project has dependencies configured through gradle. I would like to add the following dependency: </p>
  
  <pre><code>compile group: 'org.restlet.jse', name: 'org.restlet.ext.apispark', version: '2.3.1'
  </code></pre>
  
  <p>Which can be found in the following repository (which I have added to my build.gradle):</p>
  
  <pre><code>maven {
      url "http://maven.restlet.org"
  }
  </code></pre>
  
  <p>However when I do that I get the following error:</p>
  
  <pre><code>Could not find org.restlet.jse:org.restlet.lib.swagger-models:1.5.0-SNAPSHOT.
  http://maven.restlet.org/org/restlet/jse/org.restlet.lib.swagger-models/1.5.0-SNAPSHOT/maven-metadata.xml
  http://maven.restlet.org/org/restlet/jse/org.restlet.lib.swagger-models/1.5.0-SNAPSHOT/org.restlet.lib.swagger-models-1.5.0-null-null.pom
  http://maven.restlet.org/org/restlet/jse/org.restlet.lib.swagger-models/1.5.0-SNAPSHOT/org.restlet.lib.swagger-models-1.5.0-null-null.jar
  Required by: org.restlet.jse:org.restlet.ext.apispark:2.3.1
  </code></pre>
  
  <p>I can see that the jar is in fact in the repository however Gradle is not looking for it in the right location for reasons unknown to me. Why is it not using the version in the filename but rather 1.5.0-null-null.</p>
  
  <p>I have made a made a Maven project with the same dependency defined in the pom.xml which works. </p>
  
  <p><a href="https://github.com/restlet/restlet-tutorial/blob/master/modules/org.restlet.tutorial.webapi/pom.xml" rel="nofollow">Link to working pom.xml that has same dependency</a></p>
  
  <p>How can this issue be resolved? I'm at this point also interesting in more manual solutions :) Thank you.</p>