ian.shaun.thomas
12/19/2019, 2:38 PMjs
plugin in the web module?
All I get is this:
Cannot add extension with name 'kotlinNodeJs', as there is an extension already registered with that name.Library module is using
kotlin("multiplatform")
plugin and JS web module is using kotlin("js")
. The error is triggered when trying to enable browser or nodejs as a target in the js module when browser or nodejs are enabled in the common mpp module. ie:
js {
browser {}
nodejs {}
}
I can't find examples of anyone using these together so I guess it's not possible right now?russhwolf
12/19/2019, 2:43 PMian.shaun.thomas
12/19/2019, 2:49 PMpluginManagement {
val detekt_version: String by settings
val kotlin_version: String by settings
plugins {
id("org.jetbrains.kotlin.jvm").version(kotlin_version)
id("org.jetbrains.kotlin.js").version(kotlin_version)
id("org.jetbrains.kotlin.multiplatform").version(kotlin_version)
id("io.gitlab.arturbosch.detekt").version(detekt_version)
}
}
The only reason I'm doing this is so I can define dependency versions once for tools like detekt and kotlin which also have the local deps. Thankfully kotlin plugins resolved this with the kotlin()
helper method but tools like detekt have not. Maybe I can use a mixture of both approaches to work around this issue?russhwolf
12/19/2019, 3:26 PM