https://kotlinlang.org logo
#kobalt
Title
b

bmsantos

01/08/2016, 2:38 AM
You should consider a root Build.kt that loads other Build.kt from its modules. For example, say you have the following project structure:
Copy code
project_root/kobalt/src/Build.kt
project_root/moduleA/kobalt/src/Build.kt
project_root/moduleB/kobalt/src/Build.kt
then Root project should have a descriptor similar to:
Copy code
val project = modularProject {
    modules(“moduleA”, “moduleB”)
}
When building we should have the option to say:
Copy code
./kotlinw assemble —module moduleA
This is because of module dependencies.