[英]How should I create my Kotlin multi-module project with Intellij Idea?
I want to create a Kotlin project with Gradle as a build tool that has 3 modules:我想用 Gradle 创建一个 Kotlin 项目作为具有 3 个模块的构建工具:
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 modulescore
模块,包含其他模块使用的“业务逻辑”(我将使用的实体以及实现我的应用程序逻辑所需的所有内容)cli
module that uses picocli to create a command line utilitycli
模块desktop
module that uses Jetpack Compose for Desktop to build the UIdesktop
模块Is this a use case for Kotlin Multiplatform?这是 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?如果不是 Kotlin Multiplatform,我该如何设置整个过程?
Yes, this very much is a use case for Kotlin Multiplatform.是的,这是 Kotlin Multiplatform 的一个用例。
In IntelliJ use the menu to create a new project and select "Kotlin Multiplatform App".在 IntelliJ 中使用菜单创建一个新项目和 select “Kotlin Multiplatform App”。 That will create the basic structure for you.
这将为您创建基本结构。 After that, study study study.
之后,学习学习学习。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.