File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
components/sbm-core/src/main/java/org/springframework/sbm/build/api Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 24
24
import java .util .ArrayList ;
25
25
import java .util .List ;
26
26
import java .util .Optional ;
27
+ import java .util .Set ;
27
28
import java .util .stream .Collectors ;
28
29
import java .util .stream .Stream ;
29
30
@@ -111,9 +112,10 @@ private List<Module> getModulesContainingMavens(List<MavenResolutionResult> mave
111
112
*/
112
113
public List <Module > getTopmostApplicationModules () {
113
114
List <Module > topmostModules = new ArrayList <>();
115
+ Set <String > packagingTypes = Set .of ("jar" ,"war" );
114
116
modules .forEach (module -> {
115
117
// is jar
116
- if ("jar" . equals (module .getBuildFile ().getPackaging ())) { // FIXME: other types could be topmost too, e.g. 'war'
118
+ if (packagingTypes . contains (module .getBuildFile ().getPackaging ())) {
117
119
// no other pom depends on this pom in its dependency section
118
120
if (noOtherPomDependsOn (module .getBuildFile ())) {
119
121
// has no parent or parent has packaging pom
You can’t perform that action at this time.
0 commit comments