[GRADLE-299] Provide a plugin to output a dependency graph Created: 03/Nov/08  Updated: 04/Jan/13  Resolved: 18/May/09

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 0.6

Type: New Feature
Reporter: Phil Messenger Assignee: Adam Murdoch
Resolution: Fixed Votes: 0

Attachments: File dependencies.tar.gz     File showDependencies.diff    

 Description   

At the moment, there's no way of getting a sensible listing of a projects dependencies and subsequence transitive dependencies.



 Comments   
Comment by Phil Messenger [ 03/Nov/08 ]

Attached is a tgz containing some initial code.

Todo: create a patch against the current gradle SVN and rename classes to fit gradle naming conventions.

Comment by Phil Messenger [ 03/Nov/08 ]

This currently supports two output formats

a) a nice ASCII tree which is very verbose
b) graphviz dot notation for generating a nice DAG. Needs the output to be run through the dot tool to generate a PNG

Comment by Phil Messenger [ 23/Nov/08 ]

Attached a diff against SVN trunk.

Some things:

  • haven't hooked up to the CLI as I couldn't work out what BuiltInTasksBuildExecutor was doing and I'm tired
  • added a "lastResolveReport" property to the DefaultDependencyResolver. The graph builder needs an Ivy ResolveReport, and this seemed like the best place to get it.
  • the ShowDependenciesTask by default will output an ASCII tree for the runtime dependencies. The outputFile, conf and renderer properties alter this behaviour (see javadoc)
  • unit tests missing. Ivys ResolveReport is made of much fail and little javadocs. Ugh.
Comment by Adam Murdoch [ 30/Dec/08 ]

I've commited the patch. I will start wiring it up to the command line

Generated at Wed Jun 30 11:26:37 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.