TNG / ArchUnit

A Java architecture test library, to specify and assert architecture rules in plain Java
http://archunit.org
Apache License 2.0
3.18k stars 288 forks source link

support optional `component` keyword in PlantUML diagram rules #1223

Closed tfij closed 5 months ago

tfij commented 8 months ago

It is valid PlantUML syntax to prepend the component keyword to a component declaration, e.g.

component [MyComponent] <<..mycmp..>>

Since it doesn't create a big overhead to support this as an optional part of the component declaration, we can add it to make it easier for users that distinguish their components from other types of objects like databases.

tfij commented 8 months ago

PR should be rebased after the https://github.com/TNG/ArchUnit/pull/1184 merge so it will contain only a single commit