I am trying to make multi module project(kotlin) w...
# spring
i
I am trying to make multi module project(kotlin) with gradle, i am not getting any reference on internet , could you guys help with this?
a
Try this: https://github.com/gradle/kotlin-dsl-samples/tree/master/samples/multi-kotlin-project It's a little dated but should be a reasonable staring point
i
@ashmelev dont you think its old?
i want to create multi module from start with gradle , i found maven example everywhere!
a
No, not especially. It has the basics of a multi-project setup and those have not changed markedly.
I seems to have been updated 11 months ago - not much of significance to multi-project has happened in that time
i
Thanks for reply, how i create project from start ?
how can i add module in my multi project?
a
I don't have/use any automation for this... I just create the project structure in a directory and then set the
build.gradle
files accordingly (i.e. main
build.gradle
at the project root and then each sub-project has it's own
build.gradle
). Don't forget to add the
settings.gradle
file at the root with a list of all the sub-project (i.e. something like:
Copy code
include("cli", "core")
[Your names would match the sub-directory names]
i
Yea got it ! Thanks Finally i build multi project
👍 1
1144 Views