ferstl / depgraph-maven-plugin

A Maven plugin that generates dependency graphs in various formats (DOT, GML, PlantUML, JSON and Text)
Apache License 2.0
562 stars 85 forks source link

Add support for PlantUML #39

Closed gushakov closed 7 years ago

gushakov commented 7 years ago

Hi, thank you for your work on this useful tool.

I submitted a PR for support for PlantUML diagrams (requires GraphViz installed, of course). There are minimal changes to the existing files and the integration is straight forward.

The support for PlantUML can be very helpful for the community of users of the IntelliJ CE. There is a very useful plugin which allows to display the PlantUML diagrams directly in the workbench. Here is a preview of a PlantUML diagram created with your plugin in IntelliJ CE.

image

There is, of course, some other work (support for custom styling, integration tests) which could be added later. Also, I did not try to run the licence generator for the new files.

Here is the link to PlantUML Web Server where you can try generating diagrams online.

Thanks again.

Cheers,

George

gushakov commented 7 years ago

After a bit of thought...

Maybe this functionality is not something the depgraph plugin should have/support "out of the box". After all, PlantUML are diagrams and not graphs per se. Also, they require GraphViz and "dot" option generates graphs (and images) with the same information.

So feel free to dismiss the PR, I'll just keep it in my fork (that's what they are for).

George

ferstl commented 7 years ago

@gushakov Good work, thank you! I merged the PR but will keep this issue open until a new release of the plugin is available (depends a bit on my schedule). The support for PlantUML is well isolated. So, no problem to integrate it.

ferstl commented 7 years ago

Version 3.0.0 is available on Maven Central