Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into develop
  • Loading branch information
CsCherrYY committed May 23, 2022
2 parents 7d47292 + f43e960 commit 9391187
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;
import org.gradle.api.Project;
Expand Down Expand Up @@ -90,9 +91,9 @@ private GradleProjectModel buildModel(Project rootProject, Project project) {
List<String> plugins = getPlugins(project);
List<GradleClosure> closures = getPluginClosures(project);
List<GradleProjectModel> subModels = new ArrayList<>();
Set<Project> subProjects = project.getSubprojects();
for (Project subProject : subProjects) {
GradleProjectModel subModel = buildModel(rootProject, subProject);
Map<String, Project> childProjects = project.getChildProjects();
for (Project childProject : childProjects.values()) {
GradleProjectModel subModel = buildModel(rootProject, childProject);
if (subModel != null) {
subModels.add(subModel);
}
Expand Down

0 comments on commit 9391187

Please sign in to comment.