Philipp Mayer
10/05/2020, 3:44 PMsrcDir("src/routes/a")
srcDir("src/routes/a/asdf")
srcDir("src/routes/b")
srcDir("src/routes/c/xyz/zyx")
Right now, if I add a new directory under route, I have to add it also to my build.gradle.kts
in the given snippet.
Is there a way to accomplish that automatically, by adding all sub directories of src/routes
?
Thanks in advance!Javier
10/05/2020, 4:01 PMFileWalkTree
to add every folder inside src/routes
Philipp Mayer
10/05/2020, 4:15 PMFile("src/routes/").walkTopDown()
.filter { it.isDirectory }
.map { it.canonicalPath }
.map { it.removePrefix("/.../") }
.forEach { srcDir(it) }
Javier
10/05/2020, 4:22 PMsettings.gradle.kts
to automatically include
every module in the projectPhilipp Mayer
10/05/2020, 4:29 PMilya.gorbunov
10/06/2020, 8:56 PMsrcDir("src/routes")
include the files in all subdirectories recursively?