martmists
06/03/2023, 9:24 AMPrecompiled script plugin '/home/mart/git/experiments/myProject/buildSrc/src/main/kotlin/engine-module.gradle.kts' line: 1
* What went wrong:
Plugin [id: 'org.jetbrains.kotlin.multiplatfrom'] was not found in any of the following sources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (plugin dependency must include a version number for this source)
with the following build.gradle.kts for buildSrc:
plugins {
`kotlin-dsl`
}
repositories {
gradlePluginPortal()
mavenCentral()
}
dependencies {
implementation(kotlin("gradle-plugin", "1.8.21"))
}
Vampire
06/03/2023, 9:41 AMVampire
06/03/2023, 9:41 AMmartmists
06/03/2023, 9:46 AMNot sure what you mean with "new". We have precomputed script plugins since years.Huh, I thought I only just recently saw it mentioned as "new" in the 8.1 changelog
Watch your plugin id. form vs. fromHere's the script I'm using:
plugins {
kotlin("multiplatfrom") // version from buildSrc/build.gradle.kts
}
kotlin {
jvm()
js(IR) {
browser()
nodejs()
binaries.library()
}
}
repositories {
mavenCentral()
}
martmists
06/03/2023, 9:50 AMapply(form=
Vampire
06/03/2023, 1:00 PM