Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-299

Provide a plugin to output a dependency graph

    Details

    • Type: New Feature
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.6

      Description

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

      1. dependencies.tar.gz
        3 kB
        Phil Messenger
      2. showDependencies.diff
        15 kB
        Phil Messenger

        Activity

        Hide
        philmes Phil Messenger added a comment -

        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.

        Show
        philmes Phil Messenger added a comment - 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.
        Hide
        philmes Phil Messenger added a comment -

        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

        Show
        philmes Phil Messenger added a comment - 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
        Hide
        philmes Phil Messenger added a comment -

        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.
        Show
        philmes Phil Messenger added a comment - 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.
        Hide
        adammurdoch Adam Murdoch added a comment -

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

        Show
        adammurdoch Adam Murdoch added a comment - I've commited the patch. I will start wiring it up to the command line

          People

          • Assignee:
            adammurdoch Adam Murdoch
            Reporter:
            philmes Phil Messenger
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development