Skip to content

Commit d31c0d3

Browse files
committed
Add Mule package type to getTopmostApplicationModules
1 parent ab80888 commit d31c0d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/sbm-core/src/main/java/org/springframework/sbm/build/api/ApplicationModules.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ private List<Module> getModulesContainingMavens(List<MavenResolutionResult> mave
112112
public List<Module> getTopmostApplicationModules() {
113113
List<Module> topmostModules = new ArrayList<>();
114114
modules.forEach(module -> {
115-
// is jar
116-
if ("jar".equals(module.getBuildFile().getPackaging())) { // FIXME: other types could be topmost too, e.g. 'war'
115+
// is jar or mule-application? (mulesoft apps don't get switched over to JARs until after the recipe runs)
116+
if ("jar".equals(module.getBuildFile().getPackaging()) || "mule-application".equals(module.getBuildFile().getPackaging())) { // FIXME: other types could be topmost too, e.g. 'war'
117117
// no other pom depends on this pom in its dependency section
118118
if (noOtherPomDependsOn(module.getBuildFile())) {
119119
// has no parent or parent has packaging pom

0 commit comments

Comments
 (0)