Skip to content

Commit

Permalink
Merge pull request #655 from uhafner/depgraph-autocreate
Browse files Browse the repository at this point in the history
Automatically generate dependency graph for each module
  • Loading branch information
uhafner committed Oct 13, 2023
2 parents 88b0243 + 8af123e commit bbf36ed
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 13 deletions.
27 changes: 27 additions & 0 deletions doc/dependency-graph.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
@startuml
skinparam defaultTextAlignment center
skinparam rectangle {
BackgroundColor<<optional>> beige
BackgroundColor<<test>> lightGreen
BackgroundColor<<runtime>> lightBlue
BackgroundColor<<provided>> lightGray
}
rectangle "spotbugs-annotations\n\n4.7.3" as com_github_spotbugs_spotbugs_annotations_jar
rectangle "jsr305\n\n3.0.2" as com_google_code_findbugs_jsr305_jar
rectangle "codingstyle-pom\n\n3.32.0-SNAPSHOT" as edu_hm_hafner_codingstyle_pom_pom
rectangle "error_prone_annotations\n\n2.22.0" as com_google_errorprone_error_prone_annotations_jar
rectangle "streamex\n\n0.8.2" as one_util_streamex_jar
rectangle "codingstyle\n\n3.24.0" as edu_hm_hafner_codingstyle_jar
rectangle "commons-lang3\n\n3.13.0" as org_apache_commons_commons_lang3_jar
rectangle "commons-io\n\n2.11.0" as commons_io_commons_io_jar
com_github_spotbugs_spotbugs_annotations_jar -[#000000]-> com_google_code_findbugs_jsr305_jar
edu_hm_hafner_codingstyle_pom_pom -[#000000]-> com_github_spotbugs_spotbugs_annotations_jar
edu_hm_hafner_codingstyle_pom_pom -[#000000]-> com_google_errorprone_error_prone_annotations_jar
edu_hm_hafner_codingstyle_pom_pom -[#000000]-> one_util_streamex_jar
edu_hm_hafner_codingstyle_jar .[#D3D3D3].> com_github_spotbugs_spotbugs_annotations_jar
edu_hm_hafner_codingstyle_jar .[#D3D3D3].> com_google_errorprone_error_prone_annotations_jar
edu_hm_hafner_codingstyle_jar .[#D3D3D3].> org_apache_commons_commons_lang3_jar
edu_hm_hafner_codingstyle_jar -[#000000]-> commons_io_commons_io_jar
edu_hm_hafner_codingstyle_pom_pom -[#000000]-> edu_hm_hafner_codingstyle_jar
edu_hm_hafner_codingstyle_pom_pom -[#000000]-> org_apache_commons_commons_lang3_jar
@enduml
36 changes: 23 additions & 13 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,29 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.ferstl</groupId>
<artifactId>depgraph-maven-plugin</artifactId>
<version>${depgraph-maven-plugin.version}</version>
<configuration>
<graphFormat>puml</graphFormat>
<classpathScope>compile</classpathScope>
<showClassifiers>true</showClassifiers>
<showVersions>true</showVersions>
<showConflicts>true</showConflicts>
<showDuplicates>true</showDuplicates>
<outputFileName>dependency-graph</outputFileName>
<outputDirectory>${project.basedir}/doc</outputDirectory>
</configuration>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>graph</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.revapi</groupId>
<artifactId>revapi-maven-plugin</artifactId>
Expand Down Expand Up @@ -710,19 +733,6 @@
</excludedMethods>
</configuration>
</plugin>
<plugin>
<groupId>com.github.ferstl</groupId>
<artifactId>depgraph-maven-plugin</artifactId>
<version>${depgraph-maven-plugin.version}</version>
<configuration>
<graphFormat>puml</graphFormat>
<scope>compile</scope>
<showClassifiers>true</showClassifiers>
<showVersions>true</showVersions>
<showConflicts>true</showConflicts>
<showDuplicates>true</showDuplicates>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
Expand Down

0 comments on commit bbf36ed

Please sign in to comment.