Skip to content

PlantUml components grouping support #213

Done

Description

@decarufe

To simpify diagram it would be nice to support all grouping keywords

  • package
  • node
  • folder
  • frame
  • cloud
  • database

For example in the folling diagram I commented all direct component dependecies and use grouping dependencies instead.

@startuml Architecture Diagram
package ApplicationGroup {
  [Application] <<TheServiceName.WebApi.*>>
}

package DomainGroup {
  [Domain] <<TheServiceName.Domain.*>>
  [Infrastructure] <<TheServiceName.Infra.*>>
  [Databases] <<TheServiceName.Database.*>>
}

package AbstractionsGroup {
  [Abstractions] <<TheServiceName.Abstraction.*>>
}

' These components dependencies are inferred by the package dependencies
' Application --> Databases
' Application --> Infrastructure
' Application --> Domain
ApplicationGroup --> DomainGroup


' These components dependencies are inferred by the package dependencies
' Databases --> Abstractions
' Infrastructure --> Abstractions
' Domain --> Abstractions
Infrastructure -> Domain
DomainGroup --> AbstractionsGroup

' Infer dependencies: Because ApplicationGroup depends on DomainGroup, and DomainGroup depends on AbstractionsGroup, then ApplicationGroup depends on AbstractionsGroup
' Application --> Abstractions
' ApplicationGroup --> AbstractionsGroup


@enduml

I expect:

  • All seteretypes (<<...>>) defined in a group to be considered in that group
  • Dependency validation can be defined between group definition
  • Cascading definition to be validated (i.e.: A --> B and B --> C implies A --> C)

Activity

  1. added
    kind/feature
    on Mar 22, 2024
  2. alexanderlinne commented on Nov 27, 2026

    @alexanderlinne
    Collaborator

    Hi @decarufe, this is now implemented in #527, however it will not allow for transitive dependencies, because e.g. for a three layer architecture, Presentation --> Business and Business --> Persistence should explicitly not allow Presentation --> Persistence.

  3. added a commit that references this issue on Nov 27, 2026
    8cb6620
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions