structurizr / java-extensions

Structurizr for Java extensions
Apache License 2.0
39 stars 23 forks source link

Use deployment diagram provided by C4-PlantUML #39

Closed Riduidel closed 3 years ago

Riduidel commented 3 years ago

Currently, the C4 deployment diagram uses standard PlantUML boxes. It could be better to use the elements provided by C4-PlantUML deployment diagram type.

toorog commented 3 years ago

It would be very beneficial if structurizr-plantuml could generate plantuml macros only. By doing so, it would be quite easy to replace the content of these macros with whatever presentation is wanted.

e.g. instead of rectangle "==my software system\nDescription" <<123>> as 123 generate something like System(123,"my software system","Description")

simonbrowndotje commented 3 years ago

Sounds like it could be useful ... feel free to submit a PR with another PlantUML implementation that outputs macros (copying the C4PlantUML writer would be a good starting point).

simonbrowndotje commented 3 years ago

I've switched the C4-PlantUML export to use the Deployment_Node macro (the code is not yet in this repo).

image

simonbrowndotje commented 3 years ago

This has been rolled out to https://structurizr.com/dsl if you'd like to test it.