There are 2 ways to get at a ResolvedArtifact:
Directly from ResolvedConfiguration: resolvedConfiguration.resolvedArtifacts
Via a ResolvedDependency:
resolvedConfiguration.firstLevelModuleDependencies.each {it.moduleArtifacts}

Seems like if you want all of the details of a ResolvedDependency (and not
just the version), you use the latter. Not sure how to explain this in a
deprecation message, though.

Daz

On 11 December 2011 06:19, Luke Daley <[email protected]> wrote:

> Hi,
>
> I just realised that this has been deprecated. The deprecation message is
> really not good enough as it gives no hint as to what the new API to use is.
>
> It's here:
> http://github.com/gradle/gradle/tree/master/subprojects/core-impl/src/main/groovy/org/gradle/api/internal/artifacts/DefaultResolvedArtifact.java#L44
>
> The javadoc offers some help:
> https://github.com/gradle/gradle/blob/master/subprojects/core/src/main/groovy/org/gradle/api/artifacts/ResolvedArtifact.java#L39
>
> But getModuleVersion() doesn't replace the functionality offered by
> ResolvedDependency (e.g. getParents() & getChildren()).
>
> Regardless of whether or not we still offer the functionality of
> ResolvedArtifact or not, I think we need a better message for the user.
> I'll happily add it if someone can let me know what the story is.
>
> --
> Luke Daley
> Principal Engineer, Gradleware
> http://gradleware.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>


-- 
Darrell (Daz) DeBoer
Principal Engineer, Gradleware
http://www.gradleware.com

Reply via email to