Hi Milan It looks like you have found a bug in Gradle. We are using org.apache.ivy.util.url.ApacheURLLister to obtain a list of versions from a directory listing, and this code is not using the supplied credentials.
I've raised http://issues.gradle.org/browse/GRADLE-2318 for this issue. Thanks for the report. cheers Daz On 7 May 2012 08:32, Milan Papzilla <papic...@googlemail.com> wrote: > I have tracked down my problem and it looks like the credentials for our > repoitory > are not submitted when using dynamic version notation ( e.g 1.8.+) . > I assume that the same credentials are used that are defined in the > repository closure > > > ivy { > > url "https:/COMAPNY/repository/trunk/ivyrepo" > credentials { > username 'foo' > password 'foopass' > } > > layout 'pattern', { > artifact > "[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" > ivy "[organisation]/[module]/[revision]/[module]-ivy.xml" > } > } > > For some reason the authentication does not work when using a dynamic > revision. > Here the debug output where I see now credentials are used : > [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] > authentication: k='Subversion Repository@COMPANY c='null' > > Is this a bug or do I miss something here ? > > here the debug output concerning the authentication to the repo > [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] > using ivy to list all in > > https://COMPANY/repository/trunk/ivyrepo/commons-beanutils/commons-beanutils/ > [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] try > to get credentials for: Subversion Repository@COMPANY > [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] > authentication: k='Subversion Repository@COMPANY c='null' > [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] > HTTP > response status: 401 > url= > https://COMPANY/repository/trunk/ivyrepo/commons-beanutils/commons-beanutils/ > [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] > CLIENT ERROR: Authorization Required > url=COMPANY/repository/trunk/ivyrepo/commons-beanutils/commons-beanutils/ > [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] > problem while listing resources in > > https://COMPANY/repository/trunk/ivyrepo/commons-beanutils/commons-beanutils/ > with ivy: > [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] > java.io.IOException The HTTP response code for > > https://COMPANY/repository/trunk/ivyrepo/commons-beanutils/commons-beanutils/ > did not indicate a success. See log for more detail. > [DEBUG] > [org.gradle.api.internal.artifacts.repositories.ExternalResourceResolver] > Unable to list versions for commons-beanutils#commons-beanutils;1.8.+: > pattern= > https://COMPANY/repository/trunk/ivyrepo/[organisation]/[module]/[revision]/[artifact]-[revision].[ext] > [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] > ivy: no ivy file nor artifact found for > commons-beanutils#commons-beanutils;1.8.+ > [DEBUG] > > [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.DependencyResolverAdapter] > Performed resolved of module 'commons-beanutils#commons-beanutils;1.8.+' in > repository 'ivy': not found > > -- > View this message in context: > http://gradle.1045684.n5.nabble.com/Can-not-resolve-artifacts-with-dynamic-revisions-from-Ivy-repository-tp5680421p5691212.html > Sent from the gradle-user mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > -- Darrell (Daz) DeBoer Principal Engineer, Gradleware http://www.gradleware.com