Sort by filename for easier search in the logs.

This commit is contained in:
Benoit Marty 2023-05-25 11:51:46 +02:00
parent 7537c3de7c
commit 981632b7a4
2 changed files with 3 additions and 2 deletions

View file

@ -56,7 +56,7 @@ include(":anvilcodegen")
include(":samples:minimal")
fun includeProjects(directory: File, path: String, maxDepth: Int = 1) {
directory.listFiles().orEmpty().forEach { file ->
directory.listFiles().orEmpty().also { it.sort() }.forEach { file ->
if (file.isDirectory) {
val newPath = "$path:${file.name}"
val buildFile = File(file, "build.gradle.kts")