``` listOf( "is", "sec", "changeset", ...
# getting-started
x
Copy code
listOf(
    "is",
    "sec",
    "changeset",
    "reg",
    "fileuploads"
    /*
    "pdf",
    "user-authn"*/
).forEach { if (file("lib/" + it).exists()) includeBuild("lib/" + it) }
I want to rewrite this to simply list lib, and then do the needful
d
do you want to get a list of existing files paths?
x
yeah, this is my 3rd take on the impl
Copy code
file("lib")
    .listFiles(File::isDirectory)
    .filter({ it.walkTopDown().maxDepth(1).any { it.name == "settings.gradle" } })
    .forEach({ includeBuild(it.toRelativeString(cwd)) })
👍 1
basically I'm looking for valid sub gradle projects
cross posted to gradle to see if someone has a better idea bout testing it for valid gradle project
d
okay, I was gonna suggest same as you already wrote later on