I'm not sure if this is a gradle or ivy issue, but wanted to bring up a problem I have seen since work is being done on the dependency layer.

If I have two unrelated projects A and B that are both on the same computer.

A uses addMavenStyleRepo('myrepo', 'http://...')
B uses addMavenRepo()

Both A and B have
dependencies { compile 'commons-digester:commons-digester:1.5' }

If I build A first, gradle will resolve the dependency from myrepo and cache the jar under USER_HOME/.gradle/cache/commons-digester/commons-digester. The ivydata-1.5.properties file in this directory contains:
...
   artifact.resolver=myrepo
...
   resolver=myrepo
...

When I try to build B, I will get the errors:
:: problems summary ::
:::: ERRORS
        unknown resolver myrepo

        unknown resolver myrepo

        unknown resolver myrepo

I have to manually delete the USER_HOME/.gradle/cache/ directory to be able to build B.

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

   http://xircles.codehaus.org/manage_email


Reply via email to