Hi Milan,

Can you please post this query for http://forums.gradle.org?

It's much easier for us to track that way.

On 15/05/2012, at 1:11 PM, Milan Papzilla wrote:

> Hello
> 
> since I started with gradle i face the problem of not being able to resolve
> dynamic revisions when using Ivy.
> Today I gave it another try to get rid of it and I may have found something
> that could hopefully solve my problem . It was mentioned in GRADLE-1732 
> CommonsHttpClientBackedRepository doesn't support version ranges but using 
> a URLResolver should do the trick and a  altertnative syntax was mentioned
> there.
> My problem is that I could not find anything at the documentation and hardly
> something in the forum.
> I'm also interested how to provide credentials to the URLResolver.
> Here is how I got it right now but this does not work.
> I see that credentials are added :
> [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] credentials
> added: Subversion Repository@https://cmp.de fooman/************
> 
> The scripts compile correct and I see that it tries to resolve the
> dependencies:
> [DEBUG]
> [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.UserResolverChain]
> Attempting to resolve module 'monro#ivy-groups;xfire-webservice' using
> repositories '[ivyrepo]'
> 
> repositories {
> add(new org.apache.ivy.plugins.resolver.URLResolver()) {
> 
> org.apache.ivy.util.url.CredentialsStore.INSTANCE.addCredentials("Subversion
> Repository", "https://cmp.de";, "fooman", "foopass");
>        name = 'ivyrepo'
> 
>        addArtifactPattern
> https://cmp.de/repository/trunk/ivyrepo/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]";
>        addIvyPattern
> "https://cmp.de/repository/trunk/ivyrepo/[organisation]/[module]/[revision]/[module]-ivy.xml";
>   }
> }
> 
> It does not matter if I use dynamic or fix revisions numbers.
> It always ends up in 
> org.gradle.api.GradleScriptException: A problem occurred evaluating script.
> .....
> Caused by: org.gradle.api.artifacts.ResolveException: Could not resolve all
> dependencies for configuration ':testCompile'.
> ....
> Caused by:
> org.gradle.api.internal.artifacts.ivyservice.ModuleVersionNotFoundException:
> Could not find group:commons-beanutils, module:commons-beanutils,
> version:1.8.+
> 
> Can sombody help me out ? 
> thank you 
> Milan
> 
> 
> 
> 
> 
> 
> 
> --
> View this message in context: 
> http://gradle.1045684.n5.nabble.com/Resolving-dependencies-Alternative-syntax-for-ivy-repository-tp5709767.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
> 
> 

-- 
Luke Daley
Principal Engineer, Gradleware 
http://gradleware.com


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to