Skip to content

Commit

Permalink
Fixes #425
Browse files Browse the repository at this point in the history
  • Loading branch information
Riduidel committed Mar 7, 2024
1 parent 2f28907 commit c2e30a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ public interface MavenEnhancer {
* List of ignored submodules. Allows to hide architecture documentation from production-like code
*/
String IGNORED_SUBMODULES = PREFIX+"ignored.submodules";
/**
* Set this property to true to have a list of "interesting" dependencies shown
*/
String SHOW_INTERESTING_DEPENDENCIES = PREFIX+"show.interesting.dependencies";
/**
* When set, dependencies tagged with one of the tags in this list will be filtered out from signifiant dependencies
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ public int priority() {
@Override
protected void processElement(StaticStructureElement element, OutputBuilder builder) {
if(element.getProperties().containsKey(MavenEnhancer.AGILE_ARCHITECTURE_MAVEN_TECHNOLOGIES)) {
if(Boolean.parseBoolean(element.getProperties().getOrDefault(
MavenEnhancer.SHOW_INTERESTING_DEPENDENCIES,
"false"))) {
String technologies = element.getProperties().get(MavenEnhancer.AGILE_ARCHITECTURE_MAVEN_TECHNOLOGIES);
// Rehydrate that to have artifacts
try {
Expand All @@ -48,6 +51,7 @@ protected void processElement(StaticStructureElement element, OutputBuilder buil
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
}

Expand Down

0 comments on commit c2e30a9

Please sign in to comment.