Skip to content
This repository was archived by the owner on Feb 4, 2026. It is now read-only.

Commit fee09b1

Browse files
Bumps structurizr-* dependency; adds support for PlantUML light/dark mode exports.
1 parent 9d02f38 commit fee09b1

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
structurizrVersion=4.1.0
1+
structurizrVersion=5.0.0
22
version=1.0.0

src/main/java/com/structurizr/cli/export/ExportCommand.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import com.structurizr.export.plantuml.StructurizrPlantUMLExporter;
1414
import com.structurizr.export.websequencediagrams.WebSequenceDiagramsExporter;
1515
import com.structurizr.util.WorkspaceUtils;
16+
import com.structurizr.view.ColorScheme;
1617
import com.structurizr.view.ThemeUtils;
1718
import io.github.goto1134.structurizr.export.d2.D2Exporter;
1819
import org.apache.commons.cli.*;
@@ -35,6 +36,8 @@ public class ExportCommand extends AbstractCommand {
3536

3637
private static final String JSON_FORMAT = "json";
3738
private static final String THEME_FORMAT = "theme";
39+
private static final String LIGHT = "light";
40+
private static final String DARK = "dark";
3841
private static final String PLANTUML_FORMAT = "plantuml";
3942
private static final String PLANTUML_C4PLANTUML_SUBFORMAT = "c4plantuml";
4043
private static final String PLANTUML_STRUCTURIZR_SUBFORMAT = "structurizr";
@@ -50,10 +53,21 @@ public class ExportCommand extends AbstractCommand {
5053

5154
static {
5255
EXPORTERS.put(JSON_FORMAT, new JsonWorkspaceExporter());
56+
5357
EXPORTERS.put(THEME_FORMAT, new JsonWorkspaceThemeExporter());
58+
5459
EXPORTERS.put(PLANTUML_FORMAT, new StructurizrPlantUMLExporter());
60+
EXPORTERS.put(PLANTUML_FORMAT + "-" + LIGHT, new StructurizrPlantUMLExporter(ColorScheme.Light));
61+
EXPORTERS.put(PLANTUML_FORMAT + "-" + DARK, new StructurizrPlantUMLExporter(ColorScheme.Dark));
62+
5563
EXPORTERS.put(PLANTUML_FORMAT + "/" + PLANTUML_STRUCTURIZR_SUBFORMAT, new StructurizrPlantUMLExporter());
64+
EXPORTERS.put(PLANTUML_FORMAT + "/" + PLANTUML_STRUCTURIZR_SUBFORMAT + "-" + LIGHT, new StructurizrPlantUMLExporter(ColorScheme.Light));
65+
EXPORTERS.put(PLANTUML_FORMAT + "/" + PLANTUML_STRUCTURIZR_SUBFORMAT + "-" + DARK, new StructurizrPlantUMLExporter(ColorScheme.Dark));
66+
5667
EXPORTERS.put(PLANTUML_FORMAT + "/" + PLANTUML_C4PLANTUML_SUBFORMAT, new C4PlantUMLExporter());
68+
EXPORTERS.put(PLANTUML_FORMAT + "/" + PLANTUML_C4PLANTUML_SUBFORMAT + "-" + LIGHT, new C4PlantUMLExporter(ColorScheme.Light));
69+
EXPORTERS.put(PLANTUML_FORMAT + "/" + PLANTUML_C4PLANTUML_SUBFORMAT + "-" + DARK, new C4PlantUMLExporter(ColorScheme.Dark));
70+
5771
EXPORTERS.put(MERMAID_FORMAT, new MermaidDiagramExporter());
5872
EXPORTERS.put(DOT_FORMAT, new DOTExporter());
5973
EXPORTERS.put(WEBSEQUENCEDIAGRAMS_FORMAT, new WebSequenceDiagramsExporter());

0 commit comments

Comments
 (0)