On Apr 15, 2009, at 7:45 PM, Steve Appling wrote:
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.
I have filed a Jira to Ivy about this a while ago (https://issues.apache.org/jira/browse/IVY-758
).
Did the build really fail for you?
In my case I got the error message the first time I run the build with
the new resolver (the build was successful). With the second run the
message went away.
Of course when you switch back and forth between those projects you
will continuously encounter those messages, which is really annoying.
You might comment/vote on the Ivy issue.
- Hans
--
Hans Dockter
Gradle Project lead
http://www.gradle.org
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email