That a duplicate of <https://youtrack.jetbrains.co...
# javascript
s
n
That issue being pointed to would explain why the Kotlin JS plugin has to be imported differently from the Kotlin JVM plugin when Gradle Kotlin DSL is used.
As it currently stands the Kotlin JS plugin has to be applied the traditional way like this:
Copy code
apply {
    plugin("kotlin2js")
    // ...
}
By contrast with the Kotlin JVM plugin you can do this:
Copy code
plugins {
    // ...
    kotlin(module = "jvm", version = "1.1.1")
}
Much nicer 😄
s
Yeah, but possible by default only if the plugin is published on Gradle portal plugin
n
Ok, the doc doesn't mention which version(s) of Gradle works with the techniques being used.