Arjan van Wieringen
04/21/2022, 2:23 PMBuild file '/Users/avanwieringen/Development/scribbles/kotlin/web-workers/common/build.gradle.kts' line: 16
Failed to apply plugin class 'org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin'.
> The Kotlin Gradle plugin was loaded multiple times in different subprojects, which is not supported and may break the build.
It goes away when I remove the browser()
or nodeJs
line:
plugins {
kotlin("js")
kotlin("plugin.serialization")
}
group = "nl.avwie.dom"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
kotlin {
js(IR) {
// browser() <- 1 of these breaks it
// nodejs()
}
dependencies {
}
}
My settings.gradle.kts:
pluginManagement {
plugins {
kotlin("plugin.serialization") version "1.6.20" apply false
kotlin("multiplatform") version "1.6.20" apply false
kotlin("js") version "1.6.20" apply false
}
}