You are currently viewing How should I create my Kotlin multi-module project with Intellij Idea?

How should I create my Kotlin multi-module project with Intellij Idea?

Hi! I’m new here 🙂 I tried Kotlin some months ago and I just fell in love.

Now I’m trying to create a Kotlin project with Gradle as a build tool that has 3 modules:

  • A core module that contains the “business logic” (the entities that I will use and all the stuff I need to implement the logic of my app) used by the other modules
  • A cli module that uses picocli to create a command line utility
  • A desktop module that uses Jetpack Compose for Desktop to build the UI

Is this event the right approach to this kind of project? Is this a use case for Kotlin Multiplatform? What (and how) can I do with some kind of wizard and what do I have to do by hand?
And if not Kotlin Multiplatform, how do I setup the whole thing?

I’m not sure if this is the right place to ask, point me to the right direction eventurally please!

submitted by /u/Essay97
[link] [comments]