Gradle v4.7
I posted Why is Gradle still trying to download form 3rd party repo in spite of Nexus repo setup?, and it was answered.
However that was for plugins, which are now downloaded from our internal repo thanks to @Chris_Dore 's answer.
But I still see this, for example during the build phase, even though I have https://repo.maven.apache.org/maven2
cached in our Nexus server.
Download https://repo.maven.apache.org/maven2/org/springframework/cloud/spring-cloud-starter-contract-verifier/2.1.0.RELEASE/spring-cloud-starter-contract-verifier-2.1.0.RELEASE.pom
Download https://repo.maven.apache.org/maven2/org/springframework/cloud/spring-cloud-contract-starters/2.1.0.RELEASE/spring-cloud-contract-starters-2.1.0.RELEASE.pom
Download https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-test/2.1.6.RELEASE/spring-boot-starter-test-2.1.6.RELEASE.pom
Download https://repo.maven.apache.org/maven2/org/springframework/cloud/spring-cloud-contract-parent/2.1.0.RELEASE/spring-cloud-contract-parent-2.1.0.RELEASE.pom
Download https://repo.maven.apache.org/maven2/org/springframework/cloud/spring-cloud-contract-verifier/2.1.0.RELEASE/spring-cloud-contract-verifier-2.1.0.RELEASE.pom
Download https://repo.maven.apache.org/maven2/cglib/cglib/3.2.9/cglib-3.2.9.pom
Again I have this in my build.gradle
file
buildscript {
repositories {
maven {
url "https://myNexusRepo.company.com"
credentials {
username "user"
password "password"
}
}
}
}