[GRADLE-791] graphviz report does not work - repeated empty digraphs in dependencies.txt Created: 04/Jan/10  Updated: 04/Jan/13  Resolved: 19/Sep/12

Status: Resolved
Project: Gradle
Affects Version/s: 0.8
Fix Version/s: 1.3-rc-1

Type: Bug
Reporter: Tomek Kaczanowski Assignee: Szczepan Faber
Resolution: Won't Fix Votes: 3

Attachments: File build.gradle     Text File dependencies.txt    

 Description   

for this simple build file:

usePlugin('java')
usePlugin('project-reports')

import org.gradle.api.tasks.diagnostics.GraphvizReportRenderer

repositories {
mavenCentral()
}

configurations {
checkstyle
}

dependencies {
checkstyle 'checkstyle:checkstyle:5.0'
}

dependencyReport {
renderer = new GraphvizReportRenderer()
}

run
gradle dependencyReport

you will get dependencies.txt (why not dependencies.dot ?) in build/reports/project

it looks like this (with SomeConf digraph repeated many times):

digraph SomeConf{
}
digraph SomeConf{
"commons-lang;runtime" -> "junit;master";

"checkstyle;default" -> "google_collections;compile";
"commons-cli;compile" -> "commons_lang;master";
...
"commons-beanutils-core;runtime" -> "commons_logging;runtime";
}
digraph SomeConf{
}
digraph SomeConf{
}
digraph SomeConf{
}
digraph SomeConf{
}
digraph SomeConf{
}

if you try to craete png out of it:
dot -Tpng build/reports/project/dependencies.txt -o graph.png

you will get complete garbage

if edit the dependencies.txt file by hand and remove all empty SomeConf digraphs then you can generate the png

tested with gradle 0.8



 Comments   
Comment by Tomek Kaczanowski [ 07/Jul/10 ]

checked with gradle-0.9-preview-3 - same result here

Comment by Davide Cavestro [ 05/Sep/11 ]

On gradle-1.0-milestone-3 GraphvizReportRenderer has moved to org.gradle.api.tasks.diagnostics.internal, but adapting the import I get the same unusable output.
It could be useful, what a pity...

Comment by Szczepan Faber [ 19/Sep/12 ]

I don't think GraphvizReportRenderer has ever worked properly. It has been an early contribution. I've just removed it from the codebase. If anyone wants this kind of report feel free to contribute

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