Since there's a <Github Issue> on this topic, now ...
# community-news
l
Since there's a Github Issue on this topic, now there's also a blog post: https://blog.gradle.org/three-kotlin-versions-in-a-gradle-project
👍 4
🎉 2
t
this is a good blog post. I wish it also touched on what it means for gradle plugins. These are gradle projects but they're special because they rely even more heavily on the Gradle runtime than other kinds of projects
âž• 4
m
Very cool article!
Technically, the Kotlin version that compiles your code (1.) is not the KGP version because of BTA but … yea it’s hard…
Really “Kotlin version” doesn’t mean anything without more context
b
I have an empty build.gradle.kts for that reason
Copy code
plugins {
    // Keep the embedded Kotlin JVM plugin on the included-build parent classpath so
    // `build-stat` can apply it without loading a second Kotlin plugin classpath
    // alongside the `kotlin-dsl` plugin used by `conventions`.
    embeddedKotlin("jvm") apply false
}
m
There's very little reason to use
embedded-kotlin
for KGP. What you want is almost always latest KGP with compat flags