Skip to content

Commit 6c2fe2c

Browse files
author
markschenk
committed
Added boolean to maven plugin by which can be specified whether legend should be included in diagrams.
1 parent a48123a commit 6c2fe2c

File tree

18 files changed

+1213
-0
lines changed

18 files changed

+1213
-0
lines changed

.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Eclipse
2+
.classpath
3+
.project
4+
.settings/
5+
6+
# Intellij
7+
.idea/
8+
**/*.iml
9+
**/*.iws
10+
11+
# Mac
12+
.DS_Store
13+
14+
# Maven
15+
log/
16+
target/

c4Modeling-maven-plugin/pom.xml

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>org.uniknow.c4Modeling</groupId>
8+
<artifactId>c4Modeling-maven-plugin</artifactId>
9+
<version>0.1.0-SNAPSHOT</version>
10+
<packaging>maven-plugin</packaging>
11+
12+
<properties>
13+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
14+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
15+
16+
<java.version>1.8</java.version>
17+
<maven.compiler.source>${java.version}</maven.compiler.source>
18+
<maven.compiler.target>${java.version}</maven.compiler.target>
19+
</properties>
20+
21+
<dependencies>
22+
23+
<!-- Dependencies maven plugin -->
24+
<dependency>
25+
<groupId>org.apache.maven</groupId>
26+
<artifactId>maven-plugin-api</artifactId>
27+
<version>3.8.1</version>
28+
<scope>provided</scope>
29+
</dependency>
30+
<dependency>
31+
<groupId>org.apache.maven.plugin-tools</groupId>
32+
<artifactId>maven-plugin-annotations</artifactId>
33+
<version>3.6.1</version>
34+
<scope>provided</scope>
35+
</dependency>
36+
37+
<!-- Dependencies structurizr -->
38+
<dependency>
39+
<groupId>com.structurizr</groupId>
40+
<artifactId>structurizr-core</artifactId>
41+
<version>1.9.5</version>
42+
</dependency>
43+
<dependency>
44+
<groupId>com.structurizr</groupId>
45+
<artifactId>structurizr-dsl</artifactId>
46+
<version>1.12.0</version>
47+
</dependency>
48+
<dependency>
49+
<groupId>com.structurizr</groupId>
50+
<artifactId>structurizr-export</artifactId>
51+
<version>1.1.1</version>
52+
</dependency>
53+
54+
<!-- Other -->
55+
<dependency>
56+
<groupId>org.javatuples</groupId>
57+
<artifactId>javatuples</artifactId>
58+
<version>1.2</version>
59+
</dependency>
60+
<dependency>
61+
<groupId>org.projectlombok</groupId>
62+
<artifactId>lombok</artifactId>
63+
<version>1.18.20</version>
64+
<scope>provided</scope>
65+
</dependency>
66+
67+
</dependencies>
68+
69+
<build>
70+
<pluginManagement>
71+
<plugins>
72+
<plugin>
73+
<artifactId>maven-plugin-plugin</artifactId>
74+
<version>3.6.1</version>
75+
</plugin>
76+
</plugins>
77+
</pluginManagement>
78+
79+
<plugins>
80+
81+
<plugin>
82+
<artifactId>maven-invoker-plugin</artifactId>
83+
<version>3.2.2</version>
84+
<configuration>
85+
<cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
86+
<postBuildHookScript>verify</postBuildHookScript> <!-- no extension required -->
87+
</configuration>
88+
<executions>
89+
<execution>
90+
<id>integration-test</id>
91+
<goals>
92+
<goal>install</goal>
93+
<goal>run</goal>
94+
</goals>
95+
</execution>
96+
</executions>
97+
</plugin>
98+
99+
</plugins>
100+
</build>
101+
102+
</project>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>org.uniknow.maven.plugins</groupId>
8+
<artifactId>structurizr-export-test</artifactId>
9+
<version>0.1.0</version>
10+
11+
<build>
12+
<plugins>
13+
<plugin>
14+
<groupId>org.uniknow.c4Modeling</groupId>
15+
<artifactId>c4Modeling-maven-plugin</artifactId>
16+
<version>0.1.0-SNAPSHOT</version>
17+
<configuration>
18+
<model>src/main/structurizr/model.dsl</model>
19+
<include>${project.basedir}/src/main/structurizr/customize.iuml</include>
20+
<output>${build.directory}</output>
21+
</configuration>
22+
<executions>
23+
<execution>
24+
<id>export-plantuml</id>
25+
<goals>
26+
<goal>plantUml</goal>
27+
</goals>
28+
</execution>
29+
</executions>
30+
</plugin>
31+
</plugins>
32+
</build>
33+
</project>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
!$COLOR_BACKGROUND = "#7f3b08"
2+
!$COLOR_FONT = "#f7f7f7"
3+
!$COLOR_BORDER = "#fee0b6"
4+
5+
UpdateElementStyle("person", $bgColor=$COLOR_BACKGROUND, $fontColor=$COLOR_FONT, $borderColor=$COLOR_BORDER, $shadowing="false")
6+
7+
LAYOUT_WITH_LEGEND()
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
workspace {
2+
3+
model {
4+
user = person "User"
5+
softwareSystem = softwareSystem "Software System"
6+
7+
user -> softwareSystem "Uses"
8+
}
9+
10+
views {
11+
systemContext softwareSystem {
12+
include *
13+
autolayout
14+
}
15+
16+
theme default
17+
}
18+
19+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>org.uniknow.maven.plugins</groupId>
8+
<artifactId>structurizr-export-test</artifactId>
9+
<version>0.1.0</version>
10+
11+
<build>
12+
<plugins>
13+
<plugin>
14+
<groupId>org.uniknow.c4Modeling</groupId>
15+
<artifactId>c4Modeling-maven-plugin</artifactId>
16+
<version>0.1.0-SNAPSHOT</version>
17+
<configuration>
18+
<model>src/main/structurizr/model.dsl</model>
19+
<output>${build.directory}</output>
20+
</configuration>
21+
<executions>
22+
<execution>
23+
<id>export-plantuml</id>
24+
<goals>
25+
<goal>plantUml</goal>
26+
</goals>
27+
</execution>
28+
</executions>
29+
</plugin>
30+
</plugins>
31+
</build>
32+
</project>

0 commit comments

Comments
 (0)