I seem to recall that there is a way to resolve a project descriptor into a
Project object.  I can't remember exactly how off the top of my head, but
I'm pretty sure it's possible.  Have you already explored this solution?

Daniel

On Mon, Aug 24, 2009 at 6:21 PM, Martin Grotzke <
[email protected]> wrote:

> Hi,
>
> I want to create a simple extension that lists artifacts that are more
> than once contained in the project compile dependencies (or in the
> packaging deps).
>
> The idea is to iterate over all project.compile.dependencies, find
> duplicates and for each duplicate select other artifacts, that provide
> them when invoked with transitive().
>
> For artifacts this is fine, but what to do with projects that are added
> to the compile dependencies? AFAICS this would be e.g. a JarTask, but
> then I need to get the project of the jar task (and its compile.deps).
>
> Is there any possibility to get the deps of a project another project
> depends on?
>
> Thanx && cheers,
> Martin
>

Reply via email to