can I develope a compose desktop app using the `ko...
# compose-desktop
a
can I develope a compose desktop app using the
kotlin("jvm")
gradle plugin instead of
kotlin("multiplatform")
gradle plugin??
1
l
Yes, but it won’t be able to share with Android/web from my understanding.
a
Thats okay. I am not trying to share ui here
l
In that case, it should work fine.
a
You may have issues with the IDE not being able to resolve some MPP dependencies, I remember there were bugs. Otherwise it should work fine.
b
I just stumbled over those IDE issues today^^
s
IntelliJ seems to work quite well for for a JVM-only compose app. For my multiplatform app I needed AGP 7.3 for something and IntelliJ doesn't support it. AS Flamingo is the only IDE that properly resolves dependencies for my that.
a
You may have issues with the IDE not being able to resolve some MPP dependencies, I remember there were bugs. Otherwise it should work fine.
At some point the
kotlin-jvm
Gradle plugin was refactored to share most of code with the
kotlin-multiplatform
plugin, so for the most part
kotlin-jvm
and
kotlin-multiplatform
with jvm only target should be interchangable (besides using different names for compile tasks). There could be bugs of course, but bugs can be reported to Kotlin team.
a
@alexey.tsvetkov is the same fot kotlin-js true??? As it does it use most of kotlin-multiplatform code??
a
I’m less sure about kotlin-js, but I believe it should at least share the logic for dependency resolution. So all multiplatform dependencies should be consumable by kotlin-jvm & kotlin-js projects. Also, I’m not sure we support
kotlin-js
projects in the Compose plugin
a
that answers my question. Thanks