Skip to content

Commit

Permalink
chore: minor formatting adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrueckert authored Oct 21, 2023
1 parent d34bc1f commit 700fdf9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ 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)
}
}
}
}
}
}

0 comments on commit 700fdf9

Please sign in to comment.