Max Kachinkin
07/17/2024, 6:23 PMkotlin.js
vs kotlin.multiplatform
The recommended way to use Kotlin/JS is via the kotlin.multiplatform
Gradle plugin. This is said by the doc Kotlin for JavaScript.
A year ago it was:
The recommended way to use Kotlin/JS is via the ``kotlin.js`` and ``kotlin.multiplatform`` Gradle plugins.Bot, and not just
kotlin.multiplatform
.
Does it mean that kotlin.js
will be deprecated and the main approach will be only kotlin.multiplatform
?
If I want just JS target should I prefer still use kotlin.multiplatform
? If I want only JS target, for example write a GitHub Action in Kotlin.CLOVIS
07/19/2024, 8:21 AMkotlin.multiplatform
.Max Kachinkin
07/19/2024, 8:54 AMCLOVIS
07/19/2024, 8:55 AMsrc/main
→ src/jsMain
) and some gradle tasks having js
at the start, you shouldn't see any differencesMax Kachinkin
07/19/2024, 8:56 AMCLOVIS
07/19/2024, 8:56 AMkotlin.*
plugins point to the same JAR. The only difference between them is some initialization logic (task names, folder names…) but they all behave exactly the sameMax Kachinkin
07/19/2024, 8:59 AMallI didn’t know that. Cool then.plugins point to the same JARkotlin.*
hfhbd
07/20/2024, 8:55 PMMax Kachinkin
07/21/2024, 3:33 PMhfhbd
07/21/2024, 3:35 PMMax Kachinkin
07/21/2024, 3:37 PMMax Kachinkin
07/21/2024, 3:39 PM