i encountered an error trying to update a project ...
# compose-desktop
t
i encountered an error trying to update a project to kotlin 2.0.
An exception occurred applying plugin request [id: 'org.jetbrains.kotlin.jvm']
> Failed to apply plugin 'org.jetbrains.kotlin.jvm'.
> Gradle#projectsEvaluated(Action) on build 'Project' cannot be executed in the current context.
for context the error happens at line 1 in the build.gradle file of external module 'core' that i use in my project here is the build.gradle for it
Copy code
plugins {
    kotlin("jvm")
}

group = "com.example"

repositories {
    mavenCentral()
}

dependencies {
    api(libs.moko.res.compose)
  testImplementation("org.jetbrains.kotlin:kotlin-test")
    implementation("org.slf4j:slf4j-api:1.7.32")
    implementation("ch.qos.logback:logback-classic:1.4.14")
}

tasks.test {
    useJUnitPlatform()
}
kotlin {
    jvmToolchain(21)
}