Is there some tooling available to evaluate the cost / readiness of e.g. a Kotlin/JVM project to be ported to KMP? For example, I could imagine a very simple check whether any
java.*
imports are present, or in general if Gradle / Maven dependencies on JVM-only artifacts are used.
o
Oliver.O
08/28/2025, 11:12 AM
I'm not aware of such tooling, but: Isn't that a kind of task where using an LLM could help?
t
tapchicoma
08/28/2025, 11:15 AM
it may be possible in the future Kotlin releases by migrating to KMP with JVM target only and moving all code to
commonMain
.
If you want to test it right now - change plugin id to
org.jetbrains.kotlin.multiplatform
, move all the code to
commonMain
and add two targets in the project. Than try to compile JVM target
s
Sebastian Schuberth
08/29/2025, 7:18 AM
While that would probably formally create a KMP project (layout), I'd also like evaluate the readiness to actually target non-JVM platforms, in particular JS and native.
Sebastian Schuberth
08/29/2025, 7:26 AM
In essence, it boils down to determining how much Java vs Kotlin API use there still is.