boolean containsSources = configureSourcesAndBinariesProperties(null, project);
if(containsSources) {
sourcesCounter++;
}
SubprojectProvider subprojectProvider = project.getLookup().lookup(SubprojectProvider.class);
boolean hasSubprojects = false;
if (subprojectProvider != null) {
Set<? extends Project> subprojects = subprojectProvider.getSubprojects();
hasSubprojects = !subprojects.isEmpty();
for (Project subproject : subprojects) {
String module = subproject.getProjectDirectory().getNameExt();
boolean moduleContainsSources = addModuleProperties(module, subproject);
if (moduleContainsSources) {