Riduidel / aadarchi

A maven archetype to generate easily projects allowing architecture description using a mix of C4, agile architecture, Asciidoc and PlantUML
https://riduidel.github.io/aadarchi/
Apache License 2.0
40 stars 12 forks source link

Update Structurizr DSL version to support instances range #322

Closed lhauspie closed 1 year ago

lhauspie commented 1 year ago

It seems the structurizr version of aadarchi is 1.21.1. Instances for deploymentNode can be ranges since version 1.22.0 : https://github.com/structurizr/dsl/releases/tag/v1.22.0

Is it possible de upgrade the dsl version to support this feature otherwise we encounter this kind of error:

Caused by: com.structurizr.dsl.StructurizrDslParserException: "2..6" is not a valid number of instances at line 46: deploymentNode "my-deployment" "" "Pod" "Tags" "2..6" { at line 158: !include deploymentEnvironmentPreprod.dsl
    at com.structurizr.dsl.StructurizrDslParser.parse (StructurizrDslParser.java:761)
    at com.structurizr.dsl.StructurizrDslParser.parse (StructurizrDslParser.java:125)
    at org.ndx.aadarchi.base.providers.FromDsl.describeArchitecture (FromDsl.java:41)
    at org.ndx.aadarchi.base.providers.FromDsl$Proxy$_$$_WeldClientProxy.describeArchitecture (Unknown Source)
...

Thanks in advance 😉