Use gradle logger to filter out when running with only warning logs.

This commit is contained in:
Benoit Marty 2023-05-25 12:03:51 +02:00
parent fdb1ebf0ce
commit 80b656a9c5
5 changed files with 17 additions and 11 deletions

View file

@ -62,7 +62,7 @@ fun includeProjects(directory: File, path: String, maxDepth: Int = 1) {
val buildFile = File(file, "build.gradle.kts")
if (buildFile.exists()) {
include(newPath)
println("Included project: $newPath")
logger.lifecycle("Included project: $newPath")
} else if (maxDepth > 0) {
includeProjects(file, newPath, maxDepth - 1)
}