Skip to content

Commit

Permalink
Fixes #251 (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
Riduidel authored Oct 4, 2022
1 parent 0981e17 commit ec83f8d
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ public abstract class AbstractAsciidoctorCallingMojo extends AbstractMojoExecuto
*/
@Parameter(name = "structurizr-dir", defaultValue = "${project.build.directory}/structurizr/diagrams", property = "aadarchi.output.diagrams")
private String structurizrDir;
private static GemExtractor gemExtractor;

protected String executedMojo() {
return goal("process-asciidoc");
Expand Down Expand Up @@ -149,7 +148,7 @@ protected final Dependency dependencyJRuby() {
}

protected Xpp3Dom configuration() {
Element requiredGems = getGemExtractor().processContainedGems(requiredGems());
Element requiredGems = new GemExtractor(gemsPath, getLog()).processContainedGems(requiredGems());
Xpp3Dom returned = MojoExecutor.configuration(
// TODO conditionalize that invocation : add all gems dependencies here
requiredGems, gemsPath(),
Expand All @@ -160,13 +159,6 @@ requiredGems, gemsPath(),
return returned;
}

private GemExtractor getGemExtractor() {
if(gemExtractor==null) {
gemExtractor = new GemExtractor(gemsPath, getLog());
}
return gemExtractor;
}

public Element configurationSourceDirectory() {
return element(name("sourceDirectory"), getSourceDirectory());
}
Expand Down

0 comments on commit ec83f8d

Please sign in to comment.