I'm trying to use 8.1's new precompiled script plugins, but I'm getting the following error: ```Prec...
m
I'm trying to use 8.1's new precompiled script plugins, but I'm getting the following error:
Copy code
Precompiled 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:
Copy code
plugins {
    `kotlin-dsl`
}

repositories {
    gradlePluginPortal()
    mavenCentral()
}

dependencies {
    implementation(kotlin("gradle-plugin", "1.8.21"))
}
v
Not sure what you mean with "new". We have precomputed script plugins since years.
Watch your plugin id. form vs. from
m
Not 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. from
Here's the script I'm using:
Copy code
plugins {
    kotlin("multiplatfrom")  // version from buildSrc/build.gradle.kts
}

kotlin {
    jvm()
    js(IR) {
        browser()
        nodejs()
        binaries.library()
    }
}

repositories {
    mavenCentral()
}
oh wait I see what you mean now; I thought you meant I was using
apply(form=
v
There were improvements in 8.1, but generally they are there for long already