Is there any way to get the `kotlin2js` plugin usi...
# getting-started
j
Is there any way to get the
kotlin2js
plugin using Gradle's plugins DSL? e.g.
Copy code
plugins {
    id 'org.jetbrains.kotlin.js' version '1.2.21'  // (doesn't work)
}
or similar?
a
id("kotlin2js")
or
kotlin("js")
(or
id("kotlin-dce-js")
id("org.jetbrains.kotlin.js") version "1.2.21"
will correspond to the Groovy syntax you posted, aiui
j
This doesn't appear to be working...
Copy code
plugins {
    id 'org.jetbrains.kotlin.jvm' version '1.2.21' apply false
    id 'kotlin2js' apply false
}
Gives the error:
Copy code
Plugin [id: 'kotlin2js', apply: false] was not found in any of the following sources:
Same with
org.jetbrains.kotlin.js
and so forth.
a
erp, misunderstood the question, though you were asking about translating it into build.gradle.kts
j
Oh gotcha, haha. No problem.
a
Copy code
plugins {
  id "org.jetbrains.kotlin.jvm" version "1.2.21" apply false
}

apply plugin: "kotlin2js"
seems to work (evaluates, anyway) but it’s nasty
j
Yeah... I guess I'll just stick with the
buildscript
block for now. Thanks!