diff --git a/settings.gradle.kts b/settings.gradle.kts index 0ed3f557895..d50b1d33739 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -6,8 +6,8 @@ include("engine", "engine-tests", "facades", "metas", "libs", "modules") // Handy little snippet found online that'll "fake" having nested settings.gradle files under /modules, /libs, etc rootDir.listFiles()?.forEach { possibleSubprojectDir -> if (possibleSubprojectDir.isDirectory && possibleSubprojectDir.name != ".gradle") { - possibleSubprojectDir.walkTopDown().forEach { - it.listFiles { file -> file.isFile && file.name == "subprojects.settings.gradle" }?.forEach { subprojectsSpecificationScript -> + possibleSubprojectDir.walkTopDown().forEach { it.listFiles { file -> + file.isFile && file.name == "subprojects.settings.gradle" }?.forEach { subprojectsSpecificationScript -> //println("Magic is happening, applying from $subprojectsSpecificationScript") apply { from(subprojectsSpecificationScript) @@ -15,4 +15,4 @@ rootDir.listFiles()?.forEach { possibleSubprojectDir -> } } } -} \ No newline at end of file +}