Gradle failure download dependencies


(Carles Reixach) #1

Hello everybody

We have a problem with gradle when solving dependencies. The case is that sometimes, when we are downloading a dependency of our nexus repository indicates the following error:

Download http://nexus.net:8081/repository/public-development/core/core-test-utils/1.4.0.20-RELEASE/core-test-utils-1.4.0.20-RELEASE.pom
Download http://nexus.net:8081/repository/public-development/core/core-spock-utils/1.4.0.20-RELEASE/core-spock-utils-1.4.0.20-RELEASE.pom

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not resolve all dependencies for configuration ‘:doc-drive-services:testCompile’.

Could not find any version that matches core:core-test-utils:1.4.+.
Versions that do not match:
1.3.0.19-RELEASE
1.2.0.18-RELEASE
1.2.0.17-RELEASE
1.1.0.14-RELEASE
1.0.0.13-RELEASE
+ 1 more
Required by:
doc-drive:doc-drive-services:0.2.0.27-BUILD-SNAPSHOT

As you can see, the dependency exists and is being downloaded. But for some reason gradle does not detect it. If we repeat the action, this error no longer appears.

Does anyone know why this happens?

Thank you very much in advance