i’ve prepared a test case for this:
Download 7z from http://ge.tt/2gqGjgG1/v/0?c Extract password ‘gradleWithPerforce’
Needs a windows machine: - In one cmd shell run “startPerforce.bat” which starts a test perforce server on port 1670 (keep this running). - In another shell run ‘gradle build’
This works with gradle 1.7, but fails with 1.9, 1.10, and 1.12 nightly.
E:\Temp\GradleIvyResolve>gradle --refresh-dependencies build
Build file 'E:\Temp\GradleIvyResolve\build.gradle': line 15
The ArtifactRepositoryContainer.add(DependencyResolver, Closure) method has been deprecated and is scheduled to be removed in Gradle 2.0.
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all dependencies for configuration ':compile'.
> Could not resolve org.slf4j:slf4j-log4j12:1.7.5.
> Failed to add into filestore 'D:\.gradle\caches\modules-2\metadata-2.1\descriptors' at 'org.slf4j/slf4j-log4j12/1.7.5/e42cd7cc8222da755ac37e0c7396c5c6/ivy.xml'
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Total time: 3.594 secs