structurizr / cli

A command line utility for Structurizr.
https://docs.structurizr.com/cli
Apache License 2.0
500 stars 77 forks source link

plantuml rendering is not taking into account group in the components view #37

Closed nemeros closed 3 years ago

nemeros commented 3 years ago

a minimal exemple to reproduce :

workspace "test grouping" {
    model = {
        softwareSystem = softwareSystem "group system"{
            generalContainer = container "general container"{
                c1 = component "c1"
                grp = group "my group"{
                    c2 = component "c2"
                    c3 = component "c3"
                }
            }
        }
    }
}

if i generate the plantuml export, the group in the component view is not created.

package "general container\n[Container]" {
  rectangle "==c1\n<size:10>[Component]</size>" <<3>> as 3
  rectangle "==c2\n<size:10>[Component]</size>" <<4>> as 4
  rectangle "==c3\n<size:10>[Component]</size>" <<5>> as 5
}

While if i'm using the online generator it is :

package "general container\n[Container]" <<2>> {
  skinparam PackageBorderColor<<2>> #444444
  skinparam PackageFontColor<<2>> #444444

  package "my group\n[Group]" <<group>> {
    rectangle "==c2\n<size:10>[Component]</size>" <<4>> as 4
    rectangle "==c3\n<size:10>[Component]</size>" <<5>> as 5
  }

  rectangle "==c1\n<size:10>[Component]</size>" <<3>> as 3
}
simonbrowndotje commented 3 years ago

This will be included in the next CLI release - see https://github.com/structurizr/java-extensions/issues/48

(the online version is using the new version already, which is why they are different)

pastpatryk commented 3 years ago

When the new CLI version will be released?