1.0-milestone-7 does not support NTLM proxy authentication

Running a sample project with milestone-7 leads to an error due to a proxy authentication problem.

The required proxy settings were placed in gradle.properties:

systemProp.http.proxyHost=*****
systemProp.http.proxyPort=*****
systemProp.http.proxyUser=*****
systemProp.http.proxyPassword=*****

The sample can be build using these settings and milestone-3, but it cannot be build using the same settings and milestone-7.

This is the error output:

C:\workspaces\learn\cats_gradle>gradle build
main resources
:compileJava
Credentials cannot be used for NTLM authentication: org.apache.commons.httpclien
t.UsernamePasswordCredentials
org.apache.commons.httpclient.auth.InvalidCredentialsException: Credentials cann
ot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswo
rdCredentials
        at org.apache.commons.httpclient.auth.NTLMScheme.authenticate(NTLMScheme
.java:332)
        at org.apache.commons.httpclient.HttpMethodDirector.authenticateProxy(Ht
tpMethodDirector.java:320)
        at org.apache.commons.httpclient.HttpMethodDirector.authenticate(HttpMet
hodDirector.java:232)
        at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMe
thodDirector.java:170)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
a:397)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
a:323)
        at org.gradle.api.internal.artifacts.repositories.transport.http.HttpRes
ourceCollection.executeMethod(HttpResourceCollection.java:166)
        at org.gradle.api.internal.artifacts.repositories.transport.http.HttpRes
ourceCollection.access$100(HttpResourceCollection.java:58)
        at org.gradle.api.internal.artifacts.repositories.transport.http.HttpRes
ourceCollection$LazyResourceInvocationHandler.downloadChecksum(HttpResourceColle
ction.java:276)
        at org.gradle.api.internal.artifacts.repositories.transport.http.HttpRes
ourceCollection$LazyResourceInvocationHandler.findCachedResource(HttpResourceCol
lection.java:257)
        at org.gradle.api.internal.artifacts.repositories.transport.http.HttpRes
ourceCollection$LazyResourceInvocationHandler.init(HttpResourceCollection.java:2
29)
        at org.gradle.api.internal.artifacts.repositories.transport.http.HttpRes
ourceCollection$LazyResourceInvocationHandler.invoke(HttpResourceCollection.java
:221)
        at $Proxy32.exists(Unknown Source)
        at org.gradle.api.internal.artifacts.repositories.ResourceCollectionReso
lver.findStaticResourceUsingPattern(ResourceCollectionResolver.java:92)
        at org.gradle.api.internal.artifacts.repositories.ResourceCollectionReso
lver.findResourceUsingPattern(ResourceCollectionResolver.java:76)
        at org.apache.ivy.plugins.resolver.AbstractPatternsBasedResolver.findRes
ourceUsingPatterns(AbstractPatternsBasedResolver.java:93)
        at org.gradle.api.internal.artifacts.repositories.MavenResolver.findIvyF
ileRef(MavenResolver.java:121)
        at org.apache.ivy.plugins.resolver.BasicResolver.getDependency(BasicReso
lver.java:223)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.DependencyRes
olverAdapter$1.create(DependencyResolverAdapter.java:77)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.DependencyRes
olverAdapter$1.create(DependencyResolverAdapter.java:74)
        at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(Def
aultCacheAccess.java:172)
        at org.gradle.cache.internal.DefaultPersistentDirectoryStore.longRunning
Operation(DefaultPersistentDirectoryStore.java:107)
        at org.gradle.api.internal.artifacts.ivyservice.DefaultCacheLockingManag
er.longRunningOperation(DefaultCacheLockingManager.java:57)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.DependencyRes
olverAdapter.getDependency(DependencyResolverAdapter.java:74)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.UserResolverC
hain$ModuleResolution.resolveModule(UserResolverChain.java:271)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.UserResolverC
hain$ModuleResolution.findModule(UserResolverChain.java:208)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.UserResolverC
hain.findLatestModule(UserResolverChain.java:97)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.UserResolverC
hain.getDependency(UserResolverChain.java:73)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.IvyResolverBa
ckedDependencyToModuleResolver$DefaultModuleVersionResolver.getDescriptor(IvyRes
olverBackedDependencyToModuleResolver.java:83)
        at org.gradle.api.internal.artifacts.ivyservice.resolveengine.Dependency
GraphBuilder$ModuleVersionSelectorResolveState.resolve(DependencyGraphBuilder.ja
va:870)
        at org.gradle.api.internal.artifacts.ivyservice.resolveengine.Dependency
GraphBuilder$DefaultModuleRevisionResolveState.getDescriptor(DependencyGraphBuil
der.java:606)
        at org.gradle.api.internal.artifacts.ivyservice.resolveengine.Dependency
GraphBuilder$DependencyEdge.calculateTargetConfigurations(DependencyGraphBuilder
.java:309)
        at org.gradle.api.internal.artifacts.ivyservice.resolveengine.Dependency
GraphBuilder$DependencyEdge.attachToTargetConfigurations(DependencyGraphBuilder.
java:285)
        at org.gradle.api.internal.artifacts.ivyservice.resolveengine.Dependency
GraphBuilder.traverseGraph(DependencyGraphBuilder.java:119)
        at org.gradle.api.internal.artifacts.ivyservice.resolveengine.Dependency
GraphBuilder.resolve(DependencyGraphBuilder.java:55)
        at org.gradle.api.internal.artifacts.ivyservice.resolveengine.DefaultDep
endencyResolver.resolve(DefaultDependencyResolver.java:68)
        at org.gradle.api.internal.artifacts.ivyservice.CacheLockingArtifactDepe
ndencyResolver$1.create(CacheLockingArtifactDependencyResolver.java:36)
        at org.gradle.api.internal.artifacts.ivyservice.CacheLockingArtifactDepe
ndencyResolver$1.create(CacheLockingArtifactDependencyResolver.java:34)
        at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAcc
ess.java:126)
        at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(De
faultPersistentDirectoryStore.java:99)
        at org.gradle.api.internal.artifacts.ivyservice.DefaultCacheLockingManag
er.useCache(DefaultCacheLockingManager.java:49)
        at org.gradle.api.internal.artifacts.ivyservice.CacheLockingArtifactDepe
ndencyResolver.resolve(CacheLockingArtifactDependencyResolver.java:34)
        at org.gradle.api.internal.artifacts.ivyservice.SelfResolvingDependencyR
esolver.resolve(SelfResolvingDependencyResolver.java:42)
        at org.gradle.api.internal.artifacts.ivyservice.ShortcircuitEmptyConfigs
ArtifactDependencyResolver.resolve(ShortcircuitEmptyConfigsArtifactDependencyRes
olver.java:78)
        at org.gradle.api.internal.artifacts.ivyservice.EventBroadcastingArtifac
tDependencyResolver.resolve(EventBroadcastingArtifactDependencyResolver.java:37)
          at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingArtifactDep
endencyResolver.resolve(ErrorHandlingArtifactDependencyResolver.java:36)
        at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration
.getResolvedConfiguration(DefaultConfiguration.java:234)
        at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration
_Decorated.getResolvedConfiguration(Unknown Source)
        at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration
$ConfigurationFileCollection.getFiles(DefaultConfiguration.java:493)
        at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration
.getFiles(DefaultConfiguration.java:204)
        at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration
_Decorated.getFiles(Unknown Source)
        at org.gradle.api.internal.file.collections.DefaultFileCollectionResolve
Context$FileTreeConverter.convertInto(DefaultFileCollectionResolveContext.java:1
87)
        at org.gradle.api.internal.file.collections.DefaultFileCollectionResolve
Context.doResolve(DefaultFileCollectionResolveContext.java:102)
        at org.gradle.api.internal.file.collections.DefaultFileCollectionResolve
Context.resolveAsFileTrees(DefaultFileCollectionResolveContext.java:74)
        at org.gradle.api.internal.file.collections.DefaultFileCollectionResolve
Context$FileTreeConverter.convertInto(DefaultFileCollectionResolveContext.java:1
78)
        at org.gradle.api.internal.file.collections.DefaultFileCollectionResolve
Context.doResolve(DefaultFileCollectionResolveContext.java:97)
        at org.gradle.api.internal.file.collections.DefaultFileCollectionResolve
Context.resolveAsFileTrees(DefaultFileCollectionResolveContext.java:74)
        at org.gradle.api.internal.file.CompositeFileCollection$1.resolve(Compos
iteFileCollection.java:88)
        at org.gradle.api.internal.file.CompositeFileCollection.getSourceCollect
ions(CompositeFileCollection.java:143)
        at org.gradle.api.internal.file.CompositeFileTree.getSourceCollections(C
ompositeFileTree.java:30)
        at org.gradle.api.internal.file.CompositeFileCollection.getFiles(Composi
teFileCollection.java:38)
        at org.gradle.api.internal.file.AbstractFileCollection.iterator(Abstract
FileCollection.java:60)
        at org.gradle.api.internal.changedetection.DefaultFileSnapshotter.snapsh
ot(DefaultFileSnapshotter.java:42)
        at org.gradle.api.internal.changedetection.InputFilesChangedUpToDateRule
.create(InputFilesChangedUpToDateRule.java:35)
        at org.gradle.api.internal.changedetection.CompositeUpToDateRule.create(
CompositeUpToDateRule.java:35)
        at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepos
itory$HistoricExecution.calcCurrentState(DefaultTaskArtifactStateRepository.java
:80)
        at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepos
itory$HistoricExecution.isUpToDate(DefaultTaskArtifactStateRepository.java:88)
        at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepos
itory$TaskArtifactStateImpl.isUpToDate(DefaultTaskArtifactStateRepository.java:1
28)
        at org.gradle.api.internal.changedetection.ShortCircuitTaskArtifactState
Repository$ShortCircuitArtifactState.isUpToDate(ShortCircuitTaskArtifactStateRep
ository.java:77)
        at org.gradle.api.internal.changedetection.FileCacheBroadcastTaskArtifac
tStateRepository$1.isUpToDate(FileCacheBroadcastTaskArtifactStateRepository.java
:37)
        at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.exec
ute(SkipUpToDateTaskExecuter.java:44)
        at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execut
e(ValidatingTaskExecuter.java:57)
        at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecu
ter.execute(SkipEmptySourceFilesTaskExecuter.java:41)
        at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter
.execute(SkipTaskWithNoActionsExecuter.java:51)
        at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execut
e(SkipOnlyIfTaskExecuter.java:52)
        at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter
.execute(ExecuteAtMostOnceTaskExecuter.java:42)
        at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailur
e(AbstractTask.java:243)
        at org.gradle.execution.DefaultTaskGraphExecuter.executeTask(DefaultTask
GraphExecuter.java:192)
        at org.gradle.execution.DefaultTaskGraphExecuter.doExecute(DefaultTaskGr
aphExecuter.java:177)
        at org.gradle.execution.DefaultTaskGraphExecuter.execute(DefaultTaskGrap
hExecuter.java:83)
        at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTask
ExecutionAction.java:36)
        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute
r.java:61)
        at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExec
uter.java:23)
        at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecu
ter.java:67)
        at org.gradle.api.internal.changedetection.TaskCacheLockHandlingBuildExe
cuter$1.run(TaskCacheLockHandlingBuildExecuter.java:31)
        at org.gradle.cache.internal.DefaultCacheAccess$1.create(DefaultCacheAcc
ess.java:111)
        at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAcc
ess.java:126)
        at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAcc
ess.java:109)
        at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(De
faultPersistentDirectoryStore.java:103)
        at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateCache
Access.useCache(DefaultTaskArtifactStateCacheAccess.java:79)
        at org.gradle.api.internal.changedetection.TaskCacheLockHandlingBuildExe
cuter.execute(TaskCacheLockHandlingBuildExecuter.java:29)
        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute
r.java:61)
        at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExec
uter.java:23)
        at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecu
ter.java:67)
        at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildEx
ecutionAction.java:32)
        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute
r.java:61)
        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute
r.java:54)
        at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(Default
GradleLauncher.java:152)
        at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradle
Launcher.java:108)
        at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLaun
cher.java:76)
        at org.gradle.launcher.cli.RunBuildAction.execute(RunBuildAction.java:42
)
        at org.gradle.launcher.cli.RunBuildAction.execute(RunBuildAction.java:28
)
        at org.gradle.launcher.exec.ExceptionReportingAction.execute(ExceptionRe
portingAction.java:32)
        at org.gradle.launcher.exec.ExceptionReportingAction.execute(ExceptionRe
portingAction.java:21)
        at org.gradle.launcher.cli.CommandLineActionFactory$WithLoggingAction.ex
ecute(CommandLineActionFactory.java:238)
        at org.gradle.launcher.cli.CommandLineActionFactory$WithLoggingAction.ex
ecute(CommandLineActionFactory.java:222)
        at org.gradle.launcher.Main.doAction(Main.java:48)
        at org.gradle.launcher.exec.EntryPoint$1.execute(EntryPoint.java:53)
        at org.gradle.launcher.exec.EntryPoint$1.execute(EntryPoint.java:51)
        at org.gradle.launcher.exec.Execution.execute(Execution.java:28)
        at org.gradle.launcher.exec.EntryPoint.run(EntryPoint.java:39)
        at org.gradle.launcher.Main.main(Main.java:39)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.gradle.launcher.ProcessBootstrap.runNoExit(ProcessBootstrap.java:
51)
        at org.gradle.launcher.ProcessBootstrap.run(ProcessBootstrap.java:33)
        at org.gradle.launcher.GradleMain.main(GradleMain.java:24)
Credentials cannot be used for NTLM authentication: org.apache.commons.httpclien
t.UsernamePasswordCredentials
org.apache.commons.httpclient.auth.InvalidCredentialsException: Credentials cann
ot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswo
rdCredentials
        at org.apache.commons.httpclient.auth.NTLMScheme.authenticate(NTLMScheme
.java:332)
        at org.apache.commons.httpclient.HttpMethodDirector.authenticateProxy(Ht
tpMethodDirector.java:320)
        at org.apache.commons.httpclient.HttpMethodDirector.authenticate(HttpMet
hodDirector.java:232)
        at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMe
thodDirector.java:170)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
a:397)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
a:323)
        at org.gradle.api.internal.artifacts.repositories.transport.http.HttpRes
ourceCollection.executeMethod(HttpResourceCollection.java:166)
        at org.gradle.api.internal.artifacts.repositories.transport.http.HttpRes
ourceCollection.access$100(HttpResourceCollection.java:58)
        at org.gradle.api.internal.artifacts.repositories.transport.http.HttpRes
ourceCollection$LazyResourceInvocationHandler.init(HttpResourceCollection.java:2
37)
        at org.gradle.api.internal.artifacts.repositories.transport.http.HttpRes
ourceCollection$LazyResourceInvocationHandler.invoke(HttpResourceCollection.java
:221)
        at $Proxy32.exists(Unknown Source)
        at org.gradle.api.internal.artifacts.repositories.ResourceCollectionReso
lver.findStaticResourceUsingPattern(ResourceCollectionResolver.java:92)
        at org.gradle.api.internal.artifacts.repositories.ResourceCollectionReso
lver.findResourceUsingPattern(ResourceCollectionResolver.java:76)
        at org.apache.ivy.plugins.resolver.AbstractPatternsBasedResolver.findRes
ourceUsingPatterns(AbstractPatternsBasedResolver.java:93)
        at org.gradle.api.internal.artifacts.repositories.MavenResolver.findIvyF
ileRef(MavenResolver.java:121)
        at org.apache.ivy.plugins.resolver.BasicResolver.getDependency(BasicReso
lver.java:223)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.DependencyRes
olverAdapter$1.create(DependencyResolverAdapter.java:77)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.DependencyRes
olverAdapter$1.create(DependencyResolverAdapter.java:74)
        at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(Def
aultCacheAccess.java:172)
        at org.gradle.cache.internal.DefaultPersistentDirectoryStore.longRunning
Operation(DefaultPersistentDirectoryStore.java:107)
        at org.gradle.api.internal.artifacts.ivyservice.DefaultCacheLockingManag
er.longRunningOperation(DefaultCacheLockingManager.java:57)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.DependencyRes
olverAdapter.getDependency(DependencyResolverAdapter.java:74)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.UserResolverC
hain$ModuleResolution.resolveModule(UserResolverChain.java:271)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.UserResolverC
hain$ModuleResolution.findModule(UserResolverChain.java:208)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.UserResolverC
hain.findLatestModule(UserResolverChain.java:97)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.UserResolverC
hain.getDependency(UserResolverChain.java:73)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.IvyResolverBa
ckedDependencyToModuleResolver$DefaultModuleVersionResolver.getDescriptor(IvyRes
olverBackedDependencyToModuleResolver.java:83)
        at org.gradle.api.internal.artifacts.ivyservice.resolveengine.Dependency
GraphBuilder$ModuleVersionSelectorResolveState.resolve(DependencyGraphBuilder.ja
va:870)
        at org.gradle.api.internal.artifacts.ivyservice.resolveengine.Dependency
GraphBuilder$DefaultModuleRevisionResolveState.getDescriptor(DependencyGraphBuil
der.java:606)
        at org.gradle.api.internal.artifacts.ivyservice.resolveengine.Dependency
GraphBuilder$DependencyEdge.calculateTargetConfigurations(DependencyGraphBuilder
.java:309)
        at org.gradle.api.internal.artifacts.ivyservice.resolveengine.Dependency
GraphBuilder$DependencyEdge.attachToTargetConfigurations(DependencyGraphBuilder.
java:285)
        at org.gradle.api.internal.artifacts.ivyservice.resolveengine.Dependency
GraphBuilder.traverseGraph(DependencyGraphBuilder.java:119)
        at org.gradle.api.internal.artifacts.ivyservice.resolveengine.Dependency
GraphBuilder.resolve(DependencyGraphBuilder.java:55)
        at org.gradle.api.internal.artifacts.ivyservice.resolveengine.DefaultDep
endencyResolver.resolve(DefaultDependencyResolver.java:68)
        at org.gradle.api.internal.artifacts.ivyservice.CacheLockingArtifactDepe
ndencyResolver$1.create(CacheLockingArtifactDependencyResolver.java:36)
        at org.gradle.api.internal.artifacts.ivyservice.CacheLockingArtifactDepe
ndencyResolver$1.create(CacheLockingArtifactDependencyResolver.java:34)
        at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAcc
ess.java:126)
        at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(De
faultPersistentDirectoryStore.java:99)
        at org.gradle.api.internal.artifacts.ivyservice.DefaultCacheLockingManag
er.useCache(DefaultCacheLockingManager.java:49)
        at org.gradle.api.internal.artifacts.ivyservice.CacheLockingArtifactDepe
ndencyResolver.resolve(CacheLockingArtifactDependencyResolver.java:34)
        at org.gradle.api.internal.artifacts.ivyservice.SelfResolvingDependencyR
esolver.resolve(SelfResolvingDependencyResolver.java:42)
        at org.gradle.api.internal.artifacts.ivyservice.ShortcircuitEmptyConfigs
ArtifactDependencyResolver.resolve(ShortcircuitEmptyConfigsArtifactDependencyRes
olver.java:78)
        at org.gradle.api.internal.artifacts.ivyservice.EventBroadcastingArtifac
tDependencyResolver.resolve(EventBroadcastingArtifactDependencyResolver.java:37)
          at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingArtifactDep
endencyResolver.resolve(ErrorHandlingArtifactDependencyResolver.java:36)
        at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration
.getResolvedConfiguration(DefaultConfiguration.java:234)
        at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration
_Decorated.getResolvedConfiguration(Unknown Source)
        at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration
$ConfigurationFileCollection.getFiles(DefaultConfiguration.java:493)
        at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration
.getFiles(DefaultConfiguration.java:204)
        at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration
_Decorated.getFiles(Unknown Source)
        at org.gradle.api.internal.file.collections.DefaultFileCollectionResolve
Context$FileTreeConverter.convertInto(DefaultFileCollectionResolveContext.java:1
87)
        at org.gradle.api.internal.file.collections.DefaultFileCollectionResolve
Context.doResolve(DefaultFileCollectionResolveContext.java:102)
        at org.gradle.api.internal.file.collections.DefaultFileCollectionResolve
Context.resolveAsFileTrees(DefaultFileCollectionResolveContext.java:74)
        at org.gradle.api.internal.file.collections.DefaultFileCollectionResolve
Context$FileTreeConverter.convertInto(DefaultFileCollectionResolveContext.java:1
78)
        at org.gradle.api.internal.file.collections.DefaultFileCollectionResolve
Context.doResolve(DefaultFileCollectionResolveContext.java:97)
        at org.gradle.api.internal.file.collections.DefaultFileCollectionResolve
Context.resolveAsFileTrees(DefaultFileCollectionResolveContext.java:74)
        at org.gradle.api.internal.file.CompositeFileCollection$1.resolve(Compos
iteFileCollection.java:88)
        at org.gradle.api.internal.file.CompositeFileCollection.getSourceCollect
ions(CompositeFileCollection.java:143)
        at org.gradle.api.internal.file.CompositeFileTree.getSourceCollections(C
ompositeFileTree.java:30)
        at org.gradle.api.internal.file.CompositeFileCollection.getFiles(Composi
teFileCollection.java:38)
        at org.gradle.api.internal.file.AbstractFileCollection.iterator(Abstract
FileCollection.java:60)
        at org.gradle.api.internal.changedetection.DefaultFileSnapshotter.snapsh
ot(DefaultFileSnapshotter.java:42)
        at org.gradle.api.internal.changedetection.InputFilesChangedUpToDateRule
.create(InputFilesChangedUpToDateRule.java:35)
        at org.gradle.api.internal.changedetection.CompositeUpToDateRule.create(
CompositeUpToDateRule.java:35)
        at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepos
itory$HistoricExecution.calcCurrentState(DefaultTaskArtifactStateRepository.java
:80)
        at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepos
itory$HistoricExecution.isUpToDate(DefaultTaskArtifactStateRepository.java:88)
        at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepos
itory$TaskArtifactStateImpl.isUpToDate(DefaultTaskArtifactStateRepository.java:1
28)
        at org.gradle.api.internal.changedetection.ShortCircuitTaskArtifactState
Repository$ShortCircuitArtifactState.isUpToDate(ShortCircuitTaskArtifactStateRep
ository.java:77)
        at org.gradle.api.internal.changedetection.FileCacheBroadcastTaskArtifac
tStateRepository$1.isUpToDate(FileCacheBroadcastTaskArtifactStateRepository.java
:37)
        at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.exec
ute(SkipUpToDateTaskExecuter.java:44)
        at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execut
e(ValidatingTaskExecuter.java:57)
        at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecu
ter.execute(SkipEmptySourceFilesTaskExecuter.java:41)
        at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter
.execute(SkipTaskWithNoActionsExecuter.java:51)
        at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execut
e(SkipOnlyIfTaskExecuter.java:52)
        at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter
.execute(ExecuteAtMostOnceTaskExecuter.java:42)
        at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailur
e(AbstractTask.java:243)
        at org.gradle.execution.DefaultTaskGraphExecuter.executeTask(DefaultTask
GraphExecuter.java:192)
        at org.gradle.execution.DefaultTaskGraphExecuter.doExecute(DefaultTaskGr
aphExecuter.java:177)
        at org.gradle.execution.DefaultTaskGraphExecuter.execute(DefaultTaskGrap
hExecuter.java:83)
        at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTask
ExecutionAction.java:36)
        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute
r.java:61)
        at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExec
uter.java:23)
        at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecu
ter.java:67)
        at org.gradle.api.internal.changedetection.TaskCacheLockHandlingBuildExe
cuter$1.run(TaskCacheLockHandlingBuildExecuter.java:31)
        at org.gradle.cache.internal.DefaultCacheAccess$1.create(DefaultCacheAcc
ess.java:111)
        at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAcc
ess.java:126)
        at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAcc
ess.java:109)
        at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(De
faultPersistentDirectoryStore.java:103)
        at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateCache
Access.useCache(DefaultTaskArtifactStateCacheAccess.java:79)
        at org.gradle.api.internal.changedetection.TaskCacheLockHandlingBuildExe
cuter.execute(TaskCacheLockHandlingBuildExecuter.java:29)
        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute
r.java:61)
        at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExec
uter.java:23)
        at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecu
ter.java:67)
        at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildEx
ecutionAction.java:32)
        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute
r.java:61)
        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute
r.java:54)
        at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(Default
GradleLauncher.java:152)
        at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradle
Launcher.java:108)
        at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLaun
cher.java:76)
        at org.gradle.launcher.cli.RunBuildAction.execute(RunBuildAction.java:42
)
        at org.gradle.launcher.cli.RunBuildAction.execute(RunBuildAction.java:28
)
        at org.gradle.launcher.exec.ExceptionReportingAction.execute(ExceptionRe
portingAction.java:32)
        at org.gradle.launcher.exec.ExceptionReportingAction.execute(ExceptionRe
portingAction.java:21)
        at org.gradle.launcher.cli.CommandLineActionFactory$WithLoggingAction.ex
ecute(CommandLineActionFactory.java:238)
        at org.gradle.launcher.cli.CommandLineActionFactory$WithLoggingAction.ex
ecute(CommandLineActionFactory.java:222)
        at org.gradle.launcher.Main.doAction(Main.java:48)
        at org.gradle.launcher.exec.EntryPoint$1.execute(EntryPoint.java:53)
        at org.gradle.launcher.exec.EntryPoint$1.execute(EntryPoint.java:51)
        at org.gradle.launcher.exec.Execution.execute(Execution.java:28)
        at org.gradle.launcher.exec.EntryPoint.run(EntryPoint.java:39)
        at org.gradle.launcher.Main.main(Main.java:39)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.gradle.launcher.ProcessBootstrap.runNoExit(ProcessBootstrap.java:
51)
        at org.gradle.launcher.ProcessBootstrap.run(ProcessBootstrap.java:33)
        at org.gradle.launcher.GradleMain.main(GradleMain.java:24)
  FAILURE: Build failed with an exception.
  * What went wrong:
Could not resolve group:commons-collections, module:commons-collections, version
:3.2.
Required by:
    :cats_gradle:1.0
Cause: Could not GET 'http://repo1.maven.org/maven2/commons-collections/commons-
collections/3.2/commons-collections-3.2.pom'. Received status code 407 from serv
er: Proxy Authentication Required
  * Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
  BUILD FAILED
  Total time: 4.391 secs

Thanks for the detailed report. Since Milestone7 was released, we’ve upgrade to Apache HttpClient v4.1.2, and we are relying on it’s support for proxy authentication.

Any chance you can test out a recent nightly build (http://gradle.org/nightly) and let us know if this issue persists? Then at least we’ll know if this will be an issue in Milestone8, due out in a week or so.

I had the same problem with nightly build milestone8 from 1/19/2012

I tried also to set the system property, like systemProp.http.auth.ntlm.domain=<username>, but it did not help. Is NTLM prxy authorization implemented?

Running the sample project with the latest nightly build leads to a slightly different error output.

------------------------------------------------------------
Gradle 1.0-milestone-8-20120119000021+0100
------------------------------------------------------------
C:\workspaces\learn\cats_gradle>gradle --stacktrace build
main resources
:compileJava
  FAILURE: Build failed with an exception.
  * What went wrong:
Could not resolve group:commons-collections, module:commons-collections, version
:3.2.
Required by:
    :cats_gradle:1.0
Cause: Could not GET 'http://repo1.maven.org/maven2/commons-collections/commons-
collections/3.2/commons-collections-3.2.pom'. Received status code 407 from serv
er: Proxy Authentication Required
  * Try:
Run with --info or --debug option to get more log output.
  * Exception is:
org.gradle.api.internal.artifacts.ivyservice.ModuleVersionResolveException: Coul
d not resolve group:commons-collections, module:commons-collections, version:3.2
.
Required by:
    :cats_gradle:1.0
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.LazyDependenc
yToModuleResolver$DefaultModuleVersionResolver.getDescriptor(LazyDependencyToMod
uleResolver.java:74)
        at org.gradle.api.internal.artifacts.ivyservice.resolveengine.Dependency
GraphBuilder$ModuleVersionSelectorResolveState.resolve(DependencyGraphBuilder.ja
va:870)
        at org.gradle.api.internal.artifacts.ivyservice.resolveengine.Dependency
GraphBuilder$DefaultModuleRevisionResolveState.getDescriptor(DependencyGraphBuil
der.java:606)
        at org.gradle.api.internal.artifacts.ivyservice.resolveengine.Dependency
GraphBuilder$DependencyEdge.calculateTargetConfigurations(DependencyGraphBuilder
.java:309)
        at org.gradle.api.internal.artifacts.ivyservice.resolveengine.Dependency
GraphBuilder$DependencyEdge.attachToTargetConfigurations(DependencyGraphBuilder.
java:285)
        at org.gradle.api.internal.artifacts.ivyservice.resolveengine.Dependency
GraphBuilder.traverseGraph(DependencyGraphBuilder.java:119)
        at org.gradle.api.internal.artifacts.ivyservice.resolveengine.Dependency
GraphBuilder.resolve(DependencyGraphBuilder.java:55)
        at org.gradle.api.internal.artifacts.ivyservice.resolveengine.DefaultDep
endencyResolver.resolve(DefaultDependencyResolver.java:66)
        at org.gradle.api.internal.artifacts.ivyservice.CacheLockingArtifactDepe
ndencyResolver$1.create(CacheLockingArtifactDependencyResolver.java:36)
        at org.gradle.api.internal.artifacts.ivyservice.CacheLockingArtifactDepe
ndencyResolver$1.create(CacheLockingArtifactDependencyResolver.java:34)
        at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAcc
ess.java:126)
        at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(De
faultPersistentDirectoryStore.java:99)
        at org.gradle.api.internal.artifacts.ivyservice.DefaultCacheLockingManag
er.useCache(DefaultCacheLockingManager.java:49)
        at org.gradle.api.internal.artifacts.ivyservice.CacheLockingArtifactDepe
ndencyResolver.resolve(CacheLockingArtifactDependencyResolver.java:34)
        at org.gradle.api.internal.artifacts.ivyservice.SelfResolvingDependencyR
esolver.resolve(SelfResolvingDependencyResolver.java:42)
        at org.gradle.api.internal.artifacts.ivyservice.ShortcircuitEmptyConfigs
ArtifactDependencyResolver.resolve(ShortcircuitEmptyConfigsArtifactDependencyRes
olver.java:78)
        at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingArtifactDep
endencyResolver.resolve(ErrorHandlingArtifactDependencyResolver.java:36)
        at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration
.getResolvedConfiguration(DefaultConfiguration.java:237)
        at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration
_Decorated.getResolvedConfiguration(Unknown Source)
        at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration
$ConfigurationFileCollection.getFiles(DefaultConfiguration.java:497)
        at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration
.getFiles(DefaultConfiguration.java:204)
        at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration
_Decorated.getFiles(Unknown Source)
        at org.gradle.api.internal.file.collections.DefaultFileCollectionResolve
Context$FileTreeConverter.convertInto(DefaultFileCollectionResolveContext.java:1
87)
        at org.gradle.api.internal.file.collections.DefaultFileCollectionResolve
Context.doResolve(DefaultFileCollectionResolveContext.java:102)
        at org.gradle.api.internal.file.collections.DefaultFileCollectionResolve
Context.resolveAsFileTrees(DefaultFileCollectionResolveContext.java:74)
        at org.gradle.api.internal.file.collections.DefaultFileCollectionResolve
Context$FileTreeConverter.convertInto(DefaultFileCollectionResolveContext.java:1
78)
        at org.gradle.api.internal.file.collections.DefaultFileCollectionResolve
Context.doResolve(DefaultFileCollectionResolveContext.java:97)
        at org.gradle.api.internal.file.collections.DefaultFileCollectionResolve
Context.resolveAsFileTrees(DefaultFileCollectionResolveContext.java:74)
        at org.gradle.api.internal.file.CompositeFileCollection$1.resolve(Compos
iteFileCollection.java:88)
        at org.gradle.api.internal.file.CompositeFileCollection.getSourceCollect
ions(CompositeFileCollection.java:143)
        at org.gradle.api.internal.file.CompositeFileTree.getSourceCollections(C
ompositeFileTree.java:30)
        at org.gradle.api.internal.file.CompositeFileCollection.getFiles(Composi
teFileCollection.java:38)
        at org.gradle.api.internal.file.AbstractFileCollection.iterator(Abstract
FileCollection.java:60)
        at org.gradle.api.internal.changedetection.DefaultFileSnapshotter.snapsh
ot(DefaultFileSnapshotter.java:42)
        at org.gradle.api.internal.changedetection.InputFilesChangedUpToDateRule
.create(InputFilesChangedUpToDateRule.java:35)
        at org.gradle.api.internal.changedetection.CompositeUpToDateRule.create(
CompositeUpToDateRule.java:35)
        at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepos
itory$HistoricExecution.calcCurrentState(DefaultTaskArtifactStateRepository.java
:80)
        at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepos
itory$HistoricExecution.isUpToDate(DefaultTaskArtifactStateRepository.java:88)
        at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepos
itory$TaskArtifactStateImpl.isUpToDate(DefaultTaskArtifactStateRepository.java:1
28)
        at org.gradle.api.internal.changedetection.ShortCircuitTaskArtifactState
Repository$ShortCircuitArtifactState.isUpToDate(ShortCircuitTaskArtifactStateRep
ository.java:77)
        at org.gradle.api.internal.changedetection.FileCacheBroadcastTaskArtifac
tStateRepository$1.isUpToDate(FileCacheBroadcastTaskArtifactStateRepository.java
:37)
        at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.exec
ute(SkipUpToDateTaskExecuter.java:44)
        at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execut
e(ValidatingTaskExecuter.java:57)
        at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecu
ter.execute(SkipEmptySourceFilesTaskExecuter.java:41)
        at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter
.execute(SkipTaskWithNoActionsExecuter.java:51)
        at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execut
e(SkipOnlyIfTaskExecuter.java:52)
        at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter
.execute(ExecuteAtMostOnceTaskExecuter.java:42)
        at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailur
e(AbstractTask.java:250)
        at org.gradle.execution.DefaultTaskGraphExecuter.executeTask(DefaultTask
GraphExecuter.java:192)
        at org.gradle.execution.DefaultTaskGraphExecuter.doExecute(DefaultTaskGr
aphExecuter.java:177)
        at org.gradle.execution.DefaultTaskGraphExecuter.execute(DefaultTaskGrap
hExecuter.java:83)
        at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTask
ExecutionAction.java:36)
        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute
r.java:61)
        at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExec
uter.java:23)
        at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecu
ter.java:67)
        at org.gradle.api.internal.changedetection.TaskCacheLockHandlingBuildExe
cuter$1.run(TaskCacheLockHandlingBuildExecuter.java:31)
        at org.gradle.cache.internal.DefaultCacheAccess$1.create(DefaultCacheAcc
ess.java:111)
        at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAcc
ess.java:126)
        at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAcc
ess.java:109)
        at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(De
faultPersistentDirectoryStore.java:103)
        at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateCache
Access.useCache(DefaultTaskArtifactStateCacheAccess.java:79)
        at org.gradle.api.internal.changedetection.TaskCacheLockHandlingBuildExe
cuter.execute(TaskCacheLockHandlingBuildExecuter.java:29)
        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute
r.java:61)
        at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExec
uter.java:23)
        at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecu
ter.java:67)
        at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildEx
ecutionAction.java:32)
        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute
r.java:61)
        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute
r.java:54)
        at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(Default
GradleLauncher.java:152)
        at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradle
Launcher.java:108)
        at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLaun
cher.java:76)
        at org.gradle.launcher.cli.RunBuildAction.execute(RunBuildAction.java:42
)
        at org.gradle.launcher.cli.RunBuildAction.execute(RunBuildAction.java:28
)
        at org.gradle.launcher.exec.ExceptionReportingAction.execute(ExceptionRe
portingAction.java:32)
        at org.gradle.launcher.exec.ExceptionReportingAction.execute(ExceptionRe
portingAction.java:21)
        at org.gradle.launcher.cli.CommandLineActionFactory$WithLoggingAction.ex
ecute(CommandLineActionFactory.java:238)
        at org.gradle.launcher.cli.CommandLineActionFactory$WithLoggingAction.ex
ecute(CommandLineActionFactory.java:222)
        at org.gradle.launcher.Main.doAction(Main.java:48)
        at org.gradle.launcher.exec.EntryPoint$1.execute(EntryPoint.java:53)
        at org.gradle.launcher.exec.EntryPoint$1.execute(EntryPoint.java:51)
        at org.gradle.launcher.exec.Execution.execute(Execution.java:28)
        at org.gradle.launcher.exec.EntryPoint.run(EntryPoint.java:39)
        at org.gradle.launcher.Main.main(Main.java:39)
        at org.gradle.launcher.ProcessBootstrap.runNoExit(ProcessBootstrap.java:
51)
        at org.gradle.launcher.ProcessBootstrap.run(ProcessBootstrap.java:33)
        at org.gradle.launcher.GradleMain.main(GradleMain.java:24)
Caused by: org.gradle.api.UncheckedIOException: Could not GET 'http://repo1.mave
n.org/maven2/commons-collections/commons-collections/3.2/commons-collections-3.2
.pom'. Received status code 407 from server: Proxy Authentication Required
        at org.gradle.api.internal.artifacts.repositories.transport.http.HttpRes
ourceCollection.processHttpRequest(HttpResourceCollection.java:168)
        at org.gradle.api.internal.artifacts.repositories.transport.http.HttpRes
ourceCollection.initGet(HttpResourceCollection.java:144)
        at org.gradle.api.internal.artifacts.repositories.transport.http.HttpRes
ourceCollection.getResource(HttpResourceCollection.java:104)
        at org.gradle.api.internal.artifacts.repositories.transport.http.HttpRes
ourceCollection.getResource(HttpResourceCollection.java:64)
        at org.gradle.api.internal.artifacts.repositories.ResourceCollectionReso
lver.getResource(ResourceCollectionResolver.java:304)
        at org.gradle.api.internal.artifacts.repositories.ResourceCollectionReso
lver.findStaticResourceUsingPattern(ResourceCollectionResolver.java:248)
        at org.gradle.api.internal.artifacts.repositories.ResourceCollectionReso
lver.findResourceUsingPattern(ResourceCollectionResolver.java:234)
        at org.gradle.api.internal.artifacts.repositories.ResourceCollectionReso
lver.findResourceUsingPatterns(ResourceCollectionResolver.java:136)
        at org.gradle.api.internal.artifacts.repositories.MavenResolver.findIvyF
ileRef(MavenResolver.java:117)
        at org.apache.ivy.plugins.resolver.BasicResolver.getDependency(BasicReso
lver.java:223)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CacheLockingD
ependencyResolver$1.create(CacheLockingDependencyResolver.java:50)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CacheLockingD
ependencyResolver$1.create(CacheLockingDependencyResolver.java:47)
        at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(Def
aultCacheAccess.java:172)
        at org.gradle.cache.internal.DefaultPersistentDirectoryStore.longRunning
Operation(DefaultPersistentDirectoryStore.java:107)
        at org.gradle.api.internal.artifacts.ivyservice.DefaultCacheLockingManag
er.longRunningOperation(DefaultCacheLockingManager.java:57)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CacheLockingD
ependencyResolver.getDependency(CacheLockingDependencyResolver.java:47)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.DependencyRes
olverAdapter.getDependency(DependencyResolverAdapter.java:76)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModule
VersionRepository.resolveModule(CachingModuleVersionRepository.java:138)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModule
VersionRepository.findModule(CachingModuleVersionRepository.java:79)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModule
VersionRepository.getDependency(CachingModuleVersionRepository.java:70)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.IvyContextual
iser$1.invoke(IvyContextualiser.java:44)
        at $Proxy33.getDependency(Unknown Source)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.UserResolverC
hain.findLatestModule(UserResolverChain.java:68)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.UserResolverC
hain.create(UserResolverChain.java:51)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.LazyDependenc
yToModuleResolver$DefaultModuleVersionResolver.getDescriptor(LazyDependencyToMod
uleResolver.java:71)
        ... 85 more
    BUILD FAILED
  Total time: 4.234 secs

I hope somebody solved or solves this. The documentation of Gradle does not help and is probably not complete on this matter.

In 12.3 We could not find a good overview for all possible proxy settings. One place to look are the constants in a file from the ant project. Here a link to the svn view. The other is a Networking Properties page from the JDK docs. If anyone knows a better overview please let us know via the mailing list.

I could not found a better overview of the Networking Properties than the one linked in 12.3.

Two possibilities: 1. NTLM authentication not supported somehow. 2. The http system property settings are not complete or correct.

NTLM and 407 error for milestone7 and for milestone8-nightbuild only the 407. I have the same problem here.

The issue persists, see my replies and the error for the nightbuild is slightly different as showed by lima.

I see earlier in the forum a topic of one month ago also a proxy bug:

CORE DEV > Peter Niederwieser (Core Dev) 1 month ago > GRADLE-1971 >

I believe the solution chosen was to respect the standard system properties.

Maybe the solution of GRADLE-1971 broke the proxy for NTLM based authentication?

I’ve just made some changes to proxy authentication: I’ve tested with a proxy using basic auth, but I don’t have access to an environment to test NTLM-based proxy authentication.

These changes are available in the latest nightly build : here.

Any chance you guys can try this out? (I have not yet added support for NTLM domain as part of the authentication - so if you’re supplying a username in the format [domain]\[username] this likely won’t work).

I need to put my username in the format [domain]\[username] and got the following exception with the latest nightly build:

C:\workspaces\learn\cats_gradle>gradle --stacktrace build main resources :compileJava

FAILURE: Build failed with an exception.

  • What went wrong: Could not resolve all dependencies for configuration ‘:compile’. Cause: Could not resolve group:commons-collections, module:commons-collections, version:3.2. Required by:

:cats_gradle:1.0 Cause: java.lang.NullPointerException (no error message)

  • Try: Run with --info or --debug option to get more log output.

  • Exception is: org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies fo r configuration ‘:compile’.

at org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfigurat ion.rethrowFailure(DefaultLenientConfiguration.java:51)

at org.gradle.api.internal.artifacts.ivyservice.DefaultResolvedConfigura tion.rethrowFailure(DefaultResolvedConfiguration.java:36)

at org.gradle.api.internal.artifacts.ivyservice.SelfResolvingDependencyR esolver$1.rethrowFailure(SelfResolvingDependencyResolver.java:81)

at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingArtifactDep endencyResolver$ErrorHandlingResolvedConfiguration.rethrowFailure(ErrorHandlingA rtifactDependencyResolver.java:70)

at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration $ConfigurationFileCollection.getFiles(DefaultConfiguration.java:499)

at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration .getFiles(DefaultConfiguration.java:204)

at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration _Decorated.getFiles(Unknown Source)

at org.gradle.api.internal.file.collections.DefaultFileCollectionResolve Context$FileTreeConverter.convertInto(DefaultFileCollectionResolveContext.java:1 87)

at org.gradle.api.internal.file.collections.DefaultFileCollectionResolve Context.doResolve(DefaultFileCollectionResolveContext.java:102)

at org.gradle.api.internal.file.collections.DefaultFileCollectionResolve Context.resolveAsFileTrees(DefaultFileCollectionResolveContext.java:74)

at org.gradle.api.internal.file.collections.DefaultFileCollectionResolve Context$FileTreeConverter.convertInto(DefaultFileCollectionResolveContext.java:1 78)

at org.gradle.api.internal.file.collections.DefaultFileCollectionResolve Context.doResolve(DefaultFileCollectionResolveContext.java:97)

at org.gradle.api.internal.file.collections.DefaultFileCollectionResolve Context.resolveAsFileTrees(DefaultFileCollectionResolveContext.java:74)

at org.gradle.api.internal.file.CompositeFileCollection$1.resolve(Compos iteFileCollection.java:88)

at org.gradle.api.internal.file.CompositeFileCollection.getSourceCollect ions(CompositeFileCollection.java:143)

at org.gradle.api.internal.file.CompositeFileTree.getSourceCollections(C ompositeFileTree.java:30)

at org.gradle.api.internal.file.CompositeFileCollection.getFiles(Composi teFileCollection.java:38)

at org.gradle.api.internal.file.AbstractFileCollection.iterator(Abstract FileCollection.java:60)

at org.gradle.api.internal.changedetection.DefaultFileSnapshotter.snapsh ot(DefaultFileSnapshotter.java:42)

at org.gradle.api.internal.changedetection.InputFilesChangedUpToDateRule .create(InputFilesChangedUpToDateRule.java:35)

at org.gradle.api.internal.changedetection.CompositeUpToDateRule.create( CompositeUpToDateRule.java:35)

at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepos itory$HistoricExecution.calcCurrentState(DefaultTaskArtifactStateRepository.java :80)

at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepos itory$HistoricExecution.isUpToDate(DefaultTaskArtifactStateRepository.java:88)

at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepos itory$TaskArtifactStateImpl.isUpToDate(DefaultTaskArtifactStateRepository.java:1 28)

at org.gradle.api.internal.changedetection.ShortCircuitTaskArtifactState Repository$ShortCircuitArtifactState.isUpToDate(ShortCircuitTaskArtifactStateRep ository.java:77)

at org.gradle.api.internal.changedetection.FileCacheBroadcastTaskArtifac tStateRepository$1.isUpToDate(FileCacheBroadcastTaskArtifactStateRepository.java :37)

at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.exec ute(SkipUpToDateTaskExecuter.java:44)

at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execut e(ValidatingTaskExecuter.java:57)

at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecu ter.execute(SkipEmptySourceFilesTaskExecuter.java:41)

at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter .execute(SkipTaskWithNoActionsExecuter.java:51)

at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execut e(SkipOnlyIfTaskExecuter.java:52)

at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter .execute(ExecuteAtMostOnceTaskExecuter.java:42)

at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailur e(AbstractTask.java:250)

at org.gradle.execution.DefaultTaskGraphExecuter.executeTask(DefaultTask GraphExecuter.java:192)

at org.gradle.execution.DefaultTaskGraphExecuter.doExecute(DefaultTaskGr aphExecuter.java:177)

at org.gradle.execution.DefaultTaskGraphExecuter.execute(DefaultTaskGrap hExecuter.java:83)

at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTask ExecutionAction.java:36)

at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute r.java:61)

at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExec uter.java:23)

at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecu ter.java:67)

at org.gradle.api.internal.changedetection.TaskCacheLockHandlingBuildExe cuter$1.run(TaskCacheLockHandlingBuildExecuter.java:31)

at org.gradle.cache.internal.DefaultCacheAccess$1.create(DefaultCacheAcc ess.java:111)

at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAcc ess.java:126)

at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAcc ess.java:109)

at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(De faultPersistentDirectoryStore.java:103)

at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateCache Access.useCache(DefaultTaskArtifactStateCacheAccess.java:79)

at org.gradle.api.internal.changedetection.TaskCacheLockHandlingBuildExe cuter.execute(TaskCacheLockHandlingBuildExecuter.java:29)

at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute r.java:61)

at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExec uter.java:23)

at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecu ter.java:67)

at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildEx ecutionAction.java:32)

at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute r.java:61)

at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute r.java:54)

at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(Default GradleLauncher.java:152)

at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradle Launcher.java:108)

at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLaun cher.java:76)

at org.gradle.launcher.cli.RunBuildAction.execute(RunBuildAction.java:42 )

at org.gradle.launcher.cli.RunBuildAction.execute(RunBuildAction.java:28 )

at org.gradle.launcher.exec.ExceptionReportingAction.execute(ExceptionRe portingAction.java:32)

at org.gradle.launcher.exec.ExceptionReportingAction.execute(ExceptionRe portingAction.java:21)

at org.gradle.launcher.cli.CommandLineActionFactory$WithLoggingAction.ex ecute(CommandLineActionFactory.java:238)

at org.gradle.launcher.cli.CommandLineActionFactory$WithLoggingAction.ex ecute(CommandLineActionFactory.java:222)

at org.gradle.launcher.Main.doAction(Main.java:48)

at org.gradle.launcher.exec.EntryPoint$1.execute(EntryPoint.java:53)

at org.gradle.launcher.exec.EntryPoint$1.execute(EntryPoint.java:51)

at org.gradle.launcher.exec.Execution.execute(Execution.java:28)

at org.gradle.launcher.exec.EntryPoint.run(EntryPoint.java:39)

at org.gradle.launcher.Main.main(Main.java:39)

at org.gradle.launcher.ProcessBootstrap.runNoExit(ProcessBootstrap.java: 51)

at org.gradle.launcher.ProcessBootstrap.run(ProcessBootstrap.java:33)

at org.gradle.launcher.GradleMain.main(GradleMain.java:24) Caused by: org.gradle.api.internal.artifacts.ivyservice.ModuleVersionResolveExce ption: Could not resolve group:commons-collections, module:commons-collections, version:3.2. Required by:

:cats_gradle:1.0

at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.UserResolverC hain.resolve(UserResolverChain.java:59)

at org.gradle.api.internal.artifacts.ivyservice.clientmodule.ClientModul eResolver.resolve(ClientModuleResolver.java:40)

at org.gradle.api.internal.artifacts.ivyservice.projectmodule.ProjectDep endencyResolver.resolve(ProjectDependencyResolver.java:40)

at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.LazyDependenc yToModuleResolver$StaticVersionResolveResult.resolve(LazyDependencyToModuleResol ver.java:101)

at org.gradle.api.internal.artifacts.ivyservice.resolveengine.Dependency GraphBuilder$ModuleVersionSelectorResolveState.resolve(DependencyGraphBuilder.ja va:869)

at org.gradle.api.internal.artifacts.ivyservice.resolveengine.Dependency GraphBuilder$DefaultModuleRevisionResolveState.getDescriptor(DependencyGraphBuil der.java:597)

at org.gradle.api.internal.artifacts.ivyservice.resolveengine.Dependency GraphBuilder$DependencyEdge.calculateTargetConfigurations(DependencyGraphBuilder .java:307)

at org.gradle.api.internal.artifacts.ivyservice.resolveengine.Dependency GraphBuilder$DependencyEdge.attachToTargetConfigurations(DependencyGraphBuilder. java:283)

at org.gradle.api.internal.artifacts.ivyservice.resolveengine.Dependency GraphBuilder.traverseGraph(DependencyGraphBuilder.java:117)

at org.gradle.api.internal.artifacts.ivyservice.resolveengine.Dependency GraphBuilder.resolve(DependencyGraphBuilder.java:53)

at org.gradle.api.internal.artifacts.ivyservice.resolveengine.DefaultDep endencyResolver.resolve(DefaultDependencyResolver.java:67)

at org.gradle.api.internal.artifacts.ivyservice.CacheLockingArtifactDepe ndencyResolver$1.create(CacheLockingArtifactDependencyResolver.java:36)

at org.gradle.api.internal.artifacts.ivyservice.CacheLockingArtifactDepe ndencyResolver$1.create(CacheLockingArtifactDependencyResolver.java:34)

at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAcc ess.java:126)

at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(De faultPersistentDirectoryStore.java:99)

at org.gradle.api.internal.artifacts.ivyservice.DefaultCacheLockingManag er.useCache(DefaultCacheLockingManager.java:49)

at org.gradle.api.internal.artifacts.ivyservice.CacheLockingArtifactDepe ndencyResolver.resolve(CacheLockingArtifactDependencyResolver.java:34)

at org.gradle.api.internal.artifacts.ivyservice.SelfResolvingDependencyR esolver.resolve(SelfResolvingDependencyResolver.java:42)

at org.gradle.api.internal.artifacts.ivyservice.ShortcircuitEmptyConfigs ArtifactDependencyResolver.resolve(ShortcircuitEmptyConfigsArtifactDependencyRes olver.java:78)

at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingArtifactDep endencyResolver.resolve(ErrorHandlingArtifactDependencyResolver.java:36)

at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration .getResolvedConfiguration(DefaultConfiguration.java:237)

at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration _Decorated.getResolvedConfiguration(Unknown Source)

at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration $ConfigurationFileCollection.getFiles(DefaultConfiguration.java:497)

… 66 more Caused by: java.lang.NullPointerException

at org.apache.http.impl.auth.NTLMEngineImpl.stripDotSuffix(NTLMEngineImp l.java:175)

at org.apache.http.impl.auth.NTLMEngineImpl.convertHost(NTLMEngineImpl.j ava:183)

at org.apache.http.impl.auth.NTLMEngineImpl.access$400(NTLMEngineImpl.ja va:45)

at org.apache.http.impl.auth.NTLMEngineImpl$Type1Message.(NTLMEngi neImpl.java:764)

at org.apache.http.impl.auth.NTLMEngineImpl.getType1Message(NTLMEngineIm pl.java:128)

at org.apache.http.impl.auth.NTLMEngineImpl.generateType1Msg(NTLMEngineI mpl.java:1298)

at org.apache.http.impl.auth.NTLMScheme.authenticate(NTLMScheme.java:125 )

at org.apache.http.impl.auth.AuthSchemeBase.authenticate(AuthSchemeBase. java:124)

at org.apache.http.client.protocol.RequestProxyAuthentication.process(Re questProxyAuthentication.java:113)

at org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttp Processor.java:108)

at org.apache.http.protocol.HttpRequestExecutor.preProcess(HttpRequestEx ecutor.java:174)

at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultReq uestDirector.java:462)

at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpCl ient.java:820)

at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpCl ient.java:754)

at org.gradle.api.internal.artifacts.repositories.transport.http.HttpRes ourceCollection.executeMethod(HttpResourceCollection.java:322)

at org.gradle.api.internal.artifacts.repositories.transport.http.HttpRes ourceCollection.downloadChecksum(HttpResourceCollection.java:232)

at org.gradle.api.internal.artifacts.repositories.transport.http.HttpRes ourceCollection.findCachedResource(HttpResourceCollection.java:213)

at org.gradle.api.internal.artifacts.repositories.transport.http.HttpRes ourceCollection.initGet(HttpResourceCollection.java:165)

at org.gradle.api.internal.artifacts.repositories.transport.http.HttpRes ourceCollection.getResource(HttpResourceCollection.java:132)

at org.gradle.api.internal.artifacts.repositories.transport.http.HttpRes ourceCollection.getResource(HttpResourceCollection.java:70)

at org.gradle.api.internal.artifacts.repositories.ResourceCollectionReso lver.getResource(ResourceCollectionResolver.java:304)

at org.gradle.api.internal.artifacts.repositories.ResourceCollectionReso lver.findStaticResourceUsingPattern(ResourceCollectionResolver.java:248)

at org.gradle.api.internal.artifacts.repositories.ResourceCollectionReso lver.findResourceUsingPattern(ResourceCollectionResolver.java:234)

at org.gradle.api.internal.artifacts.repositories.ResourceCollectionReso lver.findResourceUsingPatterns(ResourceCollectionResolver.java:136)

at org.gradle.api.internal.artifacts.repositories.MavenResolver.findIvyF ileRef(MavenResolver.java:117)

at org.apache.ivy.plugins.resolver.BasicResolver.getDependency(BasicReso lver.java:223)

at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CacheLockingD ependencyResolver$1.create(CacheLockingDependencyResolver.java:50)

at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CacheLockingD ependencyResolver$1.create(CacheLockingDependencyResolver.java:47)

at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(Def aultCacheAccess.java:172)

at org.gradle.cache.internal.DefaultPersistentDirectoryStore.longRunning Operation(DefaultPersistentDirectoryStore.java:107)

at org.gradle.api.internal.artifacts.ivyservice.DefaultCacheLockingManag er.longRunningOperation(DefaultCacheLockingManager.java:57)

at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CacheLockingD ependencyResolver.getDependency(CacheLockingDependencyResolver.java:47)

at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.DependencyRes olverAdapter.getDependency(DependencyResolverAdapter.java:75)

at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModule VersionRepository.resolveModule(CachingModuleVersionRepository.java:146)

at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModule VersionRepository.findModule(CachingModuleVersionRepository.java:84)

at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModule VersionRepository.getDependency(CachingModuleVersionRepository.java:75)

at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.IvyContextual iser$1.invoke(IvyContextualiser.java:44)

at $Proxy33.getDependency(Unknown Source)

at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.UserResolverC hain.findLatestModule(UserResolverChain.java:71)

at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.UserResolverC hain.resolve(UserResolverChain.java:52)

… 88 more

BUILD FAILED

Total time: 4.344 secs <\code>

Thanks for the quick response, and for being my tester! I’ll have another version for you to try shortly. If you contact me directly (darrell.deboer@gradleware.com) it might help move things forward more quickly. cheers!

OK - there’s another nightly for you to try: http://gradle.org/nightly

We now support usernames like ‘MYDOMAIN/user’ and ‘MYDOMAIN\user’. You can also provide the NT domain with the ‘http.auth.ntlm.domain’ system property.

This should work for both 1. proxy credentials : using the ‘http.proxyUser’ and ‘http.proxyPassword’ system properties 2. repository credentials : in a ‘credentials {}’ block in your build script

Please try it out and let me know. Thanks!

I tried nightbuild from 23-01-2012 (1.0-milestone-8-20120123060500+0100). NB. Maybe the last nightbuild failed? I tried both with MYDOMAIN/user and MYDOMAIN\user as well as with http.auth.ntlm.domain. There is no dot (’.’) in my domain or username (see exception below, which is same as in Lima’s last post)

Regards,

Theo.

PS D:\workspace\brem> gradle build --stacktrace
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:jar UP-TO-DATE
:assemble UP-TO-DATE
:compileTestJava UP-TO-DATE
:processTestResources UP-TO-DATE
:testClasses UP-TO-DATE
:test
  FAILURE: Build failed with an exception.
  * What went wrong:
Could not resolve all dependencies for configuration ':testRuntime'.
Cause: Could not resolve group:commons-collections, module:commons-collections, version:3.2.
Required by:
    :brem:1.0
Cause: java.lang.NullPointerException (no error message)
Cause: Could not resolve group:junit, module:junit, version:4.+.
Required by:
    :brem:1.0
Cause: java.lang.NullPointerException (no error message)
  * Try:
Run with --info or --debug option to get more log output.
  * Exception is:
org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies for configuration ':testRuntime'.
          <TRUNCATED>
  Caused by: java.lang.NullPointerException
        at org.apache.http.impl.auth.NTLMEngineImpl.stripDotSuffix(NTLMEngineImpl.java:175)
        at org.apache.http.impl.auth.NTLMEngineImpl.convertHost(NTLMEngineImpl.java:183)
        at org.apache.http.impl.auth.NTLMEngineImpl.access$400(NTLMEngineImpl.java:45)
        at org.apache.http.impl.auth.NTLMEngineImpl$Type1Message.<init>(NTLMEngineImpl.java:764)
        at org.apache.http.impl.auth.NTLMEngineImpl.getType1Message(NTLMEngineImpl.java:128)
        at org.apache.http.impl.auth.NTLMEngineImpl.generateType1Msg(NTLMEngineImpl.java:1298)
        at org.apache.http.impl.auth.NTLMScheme.authenticate(NTLMScheme.java:125)
        at org.apache.http.impl.auth.AuthSchemeBase.authenticate(AuthSchemeBase.java:124)
<TRUNCATED>
    BUILD FAILED
    Total time: 4.672 secs

Running Gradle 1.0-milestone-8-20120124000030+0100 and putting username and domain in any of the formats

[domain]\[username],

[domain]/[username] or

[username] and http.auth.ntlm.domain system property

leads to the following error output in my environment:

C:\workspaces\learn\cats_gradle>gradle --stacktrace build
main resources
:compileJava
  FAILURE: Build failed with an exception.
  * What went wrong:
Could not resolve all dependencies for configuration ':compile'.
Cause: Could not resolve group:commons-collections, module:commons-collections,
version:3.2.
Required by:
    :cats_gradle:1.0
Cause: Could not GET 'http://repo1.maven.org/maven2/commons-collections/commons-
collections/3.2/commons-collections-3.2.pom'. Received status code 407 from serv
er: Proxy Authentication Required
  * Try:
Run with --info or --debug option to get more log output.
  * Exception is:
org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies fo
r configuration ':compile'.
        at org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfigurat
ion.rethrowFailure(DefaultLenientConfiguration.java:51)
        at org.gradle.api.internal.artifacts.ivyservice.DefaultResolvedConfigura
tion.rethrowFailure(DefaultResolvedConfiguration.java:36)
        at org.gradle.api.internal.artifacts.ivyservice.SelfResolvingDependencyR
esolver$1.rethrowFailure(SelfResolvingDependencyResolver.java:81)
        at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingArtifactDep
endencyResolver$ErrorHandlingResolvedConfiguration.rethrowFailure(ErrorHandlingA
rtifactDependencyResolver.java:70)
        at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration
$ConfigurationFileCollection.getFiles(DefaultConfiguration.java:499)
        at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration
.getFiles(DefaultConfiguration.java:204)
        at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration
_Decorated.getFiles(Unknown Source)
        at org.gradle.api.internal.file.collections.DefaultFileCollectionResolve
Context$FileTreeConverter.convertInto(DefaultFileCollectionResolveContext.java:1
87)
        at org.gradle.api.internal.file.collections.DefaultFileCollectionResolve
Context.doResolve(DefaultFileCollectionResolveContext.java:102)
        at org.gradle.api.internal.file.collections.DefaultFileCollectionResolve
Context.resolveAsFileTrees(DefaultFileCollectionResolveContext.java:74)
        at org.gradle.api.internal.file.collections.DefaultFileCollectionResolve
Context$FileTreeConverter.convertInto(DefaultFileCollectionResolveContext.java:1
78)
        at org.gradle.api.internal.file.collections.DefaultFileCollectionResolve
Context.doResolve(DefaultFileCollectionResolveContext.java:97)
        at org.gradle.api.internal.file.collections.DefaultFileCollectionResolve
Context.resolveAsFileTrees(DefaultFileCollectionResolveContext.java:74)
        at org.gradle.api.internal.file.CompositeFileCollection$1.resolve(Compos
iteFileCollection.java:88)
        at org.gradle.api.internal.file.CompositeFileCollection.getSourceCollect
ions(CompositeFileCollection.java:143)
        at org.gradle.api.internal.file.CompositeFileTree.getSourceCollections(C
ompositeFileTree.java:30)
        at org.gradle.api.internal.file.CompositeFileCollection.getFiles(Composi
teFileCollection.java:38)
        at org.gradle.api.internal.file.AbstractFileCollection.iterator(Abstract
FileCollection.java:60)
        at org.gradle.api.internal.changedetection.DefaultFileSnapshotter.snapsh
ot(DefaultFileSnapshotter.java:42)
        at org.gradle.api.internal.changedetection.InputFilesChangedUpToDateRule
.create(InputFilesChangedUpToDateRule.java:35)
        at org.gradle.api.internal.changedetection.CompositeUpToDateRule.create(
CompositeUpToDateRule.java:35)
        at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepos
itory$HistoricExecution.calcCurrentState(DefaultTaskArtifactStateRepository.java
:80)
        at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepos
itory$HistoricExecution.isUpToDate(DefaultTaskArtifactStateRepository.java:88)
        at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepos
itory$TaskArtifactStateImpl.isUpToDate(DefaultTaskArtifactStateRepository.java:1
28)
        at org.gradle.api.internal.changedetection.ShortCircuitTaskArtifactState
Repository$ShortCircuitArtifactState.isUpToDate(ShortCircuitTaskArtifactStateRep
ository.java:77)
        at org.gradle.api.internal.changedetection.FileCacheBroadcastTaskArtifac
tStateRepository$1.isUpToDate(FileCacheBroadcastTaskArtifactStateRepository.java
:37)
        at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.exec
ute(SkipUpToDateTaskExecuter.java:44)
        at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execut
e(ValidatingTaskExecuter.java:57)
        at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecu
ter.execute(SkipEmptySourceFilesTaskExecuter.java:41)
        at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter
.execute(SkipTaskWithNoActionsExecuter.java:51)
        at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execut
e(SkipOnlyIfTaskExecuter.java:52)
        at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter
.execute(ExecuteAtMostOnceTaskExecuter.java:42)
        at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailur
e(AbstractTask.java:250)
        at org.gradle.execution.DefaultTaskGraphExecuter.executeTask(DefaultTask
GraphExecuter.java:192)
        at org.gradle.execution.DefaultTaskGraphExecuter.doExecute(DefaultTaskGr
aphExecuter.java:177)
        at org.gradle.execution.DefaultTaskGraphExecuter.execute(DefaultTaskGrap
hExecuter.java:83)
        at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTask
ExecutionAction.java:36)
        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute
r.java:61)
        at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExec
uter.java:23)
        at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecu
ter.java:67)
        at org.gradle.api.internal.changedetection.TaskCacheLockHandlingBuildExe
cuter$1.run(TaskCacheLockHandlingBuildExecuter.java:31)
        at org.gradle.cache.internal.DefaultCacheAccess$1.create(DefaultCacheAcc
ess.java:111)
        at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAcc
ess.java:126)
        at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAcc
ess.java:109)
        at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(De
faultPersistentDirectoryStore.java:103)
        at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateCache
Access.useCache(DefaultTaskArtifactStateCacheAccess.java:79)
        at org.gradle.api.internal.changedetection.TaskCacheLockHandlingBuildExe
cuter.execute(TaskCacheLockHandlingBuildExecuter.java:29)
        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute
r.java:61)
        at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExec
uter.java:23)
        at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecu
ter.java:67)
        at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildEx
ecutionAction.java:32)
        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute
r.java:61)
        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute
r.java:54)
        at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(Default
GradleLauncher.java:152)
        at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradle
Launcher.java:108)
        at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLaun
cher.java:76)
        at org.gradle.launcher.cli.RunBuildAction.execute(RunBuildAction.java:42
)
        at org.gradle.launcher.cli.RunBuildAction.execute(RunBuildAction.java:28
)
        at org.gradle.launcher.exec.ExceptionReportingAction.execute(ExceptionRe
portingAction.java:32)
        at org.gradle.launcher.exec.ExceptionReportingAction.execute(ExceptionRe
portingAction.java:21)
        at org.gradle.launcher.cli.CommandLineActionFactory$WithLoggingAction.ex
ecute(CommandLineActionFactory.java:238)
        at org.gradle.launcher.cli.CommandLineActionFactory$WithLoggingAction.ex
ecute(CommandLineActionFactory.java:222)
        at org.gradle.launcher.Main.doAction(Main.java:48)
        at org.gradle.launcher.exec.EntryPoint$1.execute(EntryPoint.java:53)
        at org.gradle.launcher.exec.EntryPoint$1.execute(EntryPoint.java:51)
        at org.gradle.launcher.exec.Execution.execute(Execution.java:28)
        at org.gradle.launcher.exec.EntryPoint.run(EntryPoint.java:39)
        at org.gradle.launcher.Main.main(Main.java:39)
        at org.gradle.launcher.ProcessBootstrap.runNoExit(ProcessBootstrap.java:
51)
        at org.gradle.launcher.ProcessBootstrap.run(ProcessBootstrap.java:33)
        at org.gradle.launcher.GradleMain.main(GradleMain.java:24)
Caused by: org.gradle.api.internal.artifacts.ivyservice.ModuleVersionResolveExce
ption: Could not resolve group:commons-collections, module:commons-collections,
version:3.2.
Required by:
    :cats_gradle:1.0
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.UserResolverC
hain.resolve(UserResolverChain.java:59)
        at org.gradle.api.internal.artifacts.ivyservice.clientmodule.ClientModul
eResolver.resolve(ClientModuleResolver.java:40)
        at org.gradle.api.internal.artifacts.ivyservice.projectmodule.ProjectDep
endencyResolver.resolve(ProjectDependencyResolver.java:40)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.LazyDependenc
yToModuleResolver$StaticVersionResolveResult.resolve(LazyDependencyToModuleResol
ver.java:101)
        at org.gradle.api.internal.artifacts.ivyservice.resolveengine.Dependency
GraphBuilder$ModuleVersionSelectorResolveState.resolve(DependencyGraphBuilder.ja
va:869)
        at org.gradle.api.internal.artifacts.ivyservice.resolveengine.Dependency
GraphBuilder$DefaultModuleRevisionResolveState.getDescriptor(DependencyGraphBuil
der.java:597)
        at org.gradle.api.internal.artifacts.ivyservice.resolveengine.Dependency
GraphBuilder$DependencyEdge.calculateTargetConfigurations(DependencyGraphBuilder
.java:307)
        at org.gradle.api.internal.artifacts.ivyservice.resolveengine.Dependency
GraphBuilder$DependencyEdge.attachToTargetConfigurations(DependencyGraphBuilder.
java:283)
        at org.gradle.api.internal.artifacts.ivyservice.resolveengine.Dependency
GraphBuilder.traverseGraph(DependencyGraphBuilder.java:117)
        at org.gradle.api.internal.artifacts.ivyservice.resolveengine.Dependency
GraphBuilder.resolve(DependencyGraphBuilder.java:53)
        at org.gradle.api.internal.artifacts.ivyservice.resolveengine.DefaultDep
endencyResolver.resolve(DefaultDependencyResolver.java:67)
        at org.gradle.api.internal.artifacts.ivyservice.CacheLockingArtifactDepe
ndencyResolver$1.create(CacheLockingArtifactDependencyResolver.java:36)
        at org.gradle.api.internal.artifacts.ivyservice.CacheLockingArtifactDepe
ndencyResolver$1.create(CacheLockingArtifactDependencyResolver.java:34)
        at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAcc
ess.java:126)
        at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(De
faultPersistentDirectoryStore.java:99)
        at org.gradle.api.internal.artifacts.ivyservice.DefaultCacheLockingManag
er.useCache(DefaultCacheLockingManager.java:49)
        at org.gradle.api.internal.artifacts.ivyservice.CacheLockingArtifactDepe
ndencyResolver.resolve(CacheLockingArtifactDependencyResolver.java:34)
        at org.gradle.api.internal.artifacts.ivyservice.SelfResolvingDependencyR
esolver.resolve(SelfResolvingDependencyResolver.java:42)
        at org.gradle.api.internal.artifacts.ivyservice.ShortcircuitEmptyConfigs
ArtifactDependencyResolver.resolve(ShortcircuitEmptyConfigsArtifactDependencyRes
olver.java:78)
        at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingArtifactDep
endencyResolver.resolve(ErrorHandlingArtifactDependencyResolver.java:36)
        at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration
.getResolvedConfiguration(DefaultConfiguration.java:237)
        at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration
_Decorated.getResolvedConfiguration(Unknown Source)
        at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration
$ConfigurationFileCollection.getFiles(DefaultConfiguration.java:497)
        ... 66 more
Caused by: org.gradle.api.UncheckedIOException: Could not GET 'http://repo1.mave
n.org/maven2/commons-collections/commons-collections/3.2/commons-collections-3.2
.pom'. Received status code 407 from server: Proxy Authentication Required
        at org.gradle.api.internal.artifacts.repositories.transport.http.HttpRes
ourceCollection.processHttpRequest(HttpResourceCollection.java:146)
        at org.gradle.api.internal.artifacts.repositories.transport.http.HttpRes
ourceCollection.initGet(HttpResourceCollection.java:122)
        at org.gradle.api.internal.artifacts.repositories.transport.http.HttpRes
ourceCollection.getResource(HttpResourceCollection.java:82)
        at org.gradle.api.internal.artifacts.repositories.transport.http.HttpRes
ourceCollection.getResource(HttpResourceCollection.java:55)
        at org.gradle.api.internal.artifacts.repositories.ResourceCollectionReso
lver.getResource(ResourceCollectionResolver.java:304)
        at org.gradle.api.internal.artifacts.repositories.ResourceCollectionReso
lver.findStaticResourceUsingPattern(ResourceCollectionResolver.java:248)
        at org.gradle.api.internal.artifacts.repositories.ResourceCollectionReso
lver.findResourceUsingPattern(ResourceCollectionResolver.java:234)
        at org.gradle.api.internal.artifacts.repositories.ResourceCollectionReso
lver.findResourceUsingPatterns(ResourceCollectionResolver.java:136)
        at org.gradle.api.internal.artifacts.repositories.MavenResolver.findIvyF
ileRef(MavenResolver.java:117)
        at org.apache.ivy.plugins.resolver.BasicResolver.getDependency(BasicReso
lver.java:223)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CacheLockingD
ependencyResolver$1.create(CacheLockingDependencyResolver.java:50)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CacheLockingD
ependencyResolver$1.create(CacheLockingDependencyResolver.java:47)
        at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(Def
aultCacheAccess.java:172)
        at org.gradle.cache.internal.DefaultPersistentDirectoryStore.longRunning
Operation(DefaultPersistentDirectoryStore.java:107)
        at org.gradle.api.internal.artifacts.ivyservice.DefaultCacheLockingManag
er.longRunningOperation(DefaultCacheLockingManager.java:57)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CacheLockingD
ependencyResolver.getDependency(CacheLockingDependencyResolver.java:47)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.DependencyRes
olverAdapter.getDependency(DependencyResolverAdapter.java:75)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModule
VersionRepository.resolveModule(CachingModuleVersionRepository.java:146)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModule
VersionRepository.findModule(CachingModuleVersionRepository.java:84)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModule
VersionRepository.getDependency(CachingModuleVersionRepository.java:75)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.IvyContextual
iser$1.invoke(IvyContextualiser.java:44)
        at $Proxy33.getDependency(Unknown Source)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.UserResolverC
hain.findLatestModule(UserResolverChain.java:71)
        at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.UserResolverC
hain.resolve(UserResolverChain.java:52)
        ... 88 more
    BUILD FAILED
  Total time: 17.437 secs

Is your gradle.properties file accessable? But this looks more like the bug we had earlier, because the properties where not handled in Gradle… In JIRA GRADLE-1556

On my environment it comes much further and crashes in the NTLMEngineImpl with a NullPointerException.

My sample project can be build using milestone-3 with the same gradle.properties file.

Did you test the latest nightly build 1.0-milestone-8-20120124000030+0100?

Ah I used the old nightly build. I forgot to update my page and the proxy showed me the old. It works for me with milestone-8-20120124000030+0100:

gradle.properties:

systemProp.proxySet=true
systemProp.http.proxyHost=webproxy.sfb
systemProp.http.proxyPort=80
systemProp.http.proxyUser=<my-proxy-username>
systemProp.http.proxyPassword=<my-proxy-password>
systemProp.http.nonProxyHosts=localhost
systemProp.http.auth.ntlm.domain=melkweg

Build output:

Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.
  PS D:\workspace\brem> gradle build
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:jar
:assemble
:compileTestJava UP-TO-DATE
:processTestResources UP-TO-DATE
:testClasses UP-TO-DATE
:test
Download http://repo1.maven.org/maven2/commons-collections/commons-collections/3.2/commons-collections-3.2.pom
Download http://repo1.maven.org/maven2/junit/junit/4.10/junit-4.10.pom
Download http://repo1.maven.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.pom
Download http://repo1.maven.org/maven2/org/hamcrest/hamcrest-parent/1.1/hamcrest-parent-1.1.pom
Download http://repo1.maven.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar
:check
:build
  BUILD SUCCESSFUL
  Total time: 12.871 secs
PS D:\workspace\brem>

The nightly build works for me now!

Fantastic! Thanks for being my tester :).

Can you please try with the [domain]/[username] syntax in your proxyUser property as well? (Removing the http.auth.ntlm.domain property)