Gradle unable to find artifact in maven repository

I am doing a simple gradle build and I have deployed a particular artifact to my internal sonatype maven repo

My build.gradle file looks like this:

apply plugin: ‘java’

sourceCompatibility = 1.8
version = ‘1.0’

repositories {
maven {url “”}

dependencies {
compile group: “com.typesafe”, name: “config”, version: “1.3.0”
//compile project(’:metrics’)
compile group: ‘com.ebay.telemetry’, name: ‘client-library’, version: '0.1-SNAPSHOT’
compile group: “org.slf4j”, name: “slf4j-jdk14”, version: "1.7.12"
testCompile group: ‘junit’, name: ‘junit’, version: ‘4.11’

I run this command on the command line: gradle build

I get this error:

Could not find net.alchim31:metrics-influxdb:0.7.1-ebay-SNAPSHOT.
Searched in the following locations:

However when I go to

I see the following files :


So why is gradle looking for
metrics-influxdb-0.7.1-ebay-20150708.054833-4.jar when my repo has

I have a similar problem. In my case I have an internal maven repository and I only want to use dependencies from that one. So I have specified it in the repository block. However, when running “gradle build”, it says its unable to find the jars. When looking at the debug statement I can see that its looking in the right url. I can even, copy paste it to my browser and get prompted to download the jar. So what can be causing this problem?