Gradle in intranet cannot find jars even though it says its looking into the right URL

I’m using a company internal maven repository. I just want to download all my jars from it. I have specified it in my build.gradle’s repository { url “http://myrepo” } . I get “could not resolve dependencies for compile”. Looking at the debug statements. Gradle IS looking in the correct location for the jar. I can even copy paste the url to my browser and get prompted to download the jar itself.
This is my build.gradle file:

apply plugin: ‘war’

sourceCompatibility = 1.7
version = ‘1.0.0’

repositories {
maven {
url “http://domain.company.com:80/repository/company_maven_repo
}
}

dependencies {
compile group: ‘com.mycomp’, name: ‘somename’, version: '1.1.0’
runtime group: ‘javax.servlet’, name: ‘servlet-api’, version: ‘2.5’
}