How do I now specify the jvmToolchain in subprojec...
# intellij-plugins
n
How do I now specify the jvmToolchain in subprojects? My Gradle build does this:
Copy code
subprojects {
  ...
  plugins.withType<KotlinPlatformJvmPlugin> {
    kotlin {
      jvmToolchain(21)
    }
  }
}
But the KotlinPlatformJvmPlugin class no longer exists in the plugin for Kotlin 21.1.20, and the KotlinJvmPlugin class is internal and cannot be referenced from build scripts.
h
pluginManager.withPlugin(„org.jetbrains.kotlin.jvm“)
And use
extensions.getByName
But you should not configure sub projects this way. Use a convention plugin instead.