I would like to use a more recent Kotlin version i...
# gradle
n
I would like to use a more recent Kotlin version in my "precompiled script plugins" than Gradle's embedded Kotlin version. I use Gradle 8.3 which embeds Kotlin 1.9.0 but in my projects I would like to use Kotlin 1.9.10. Is the following
buildSrc/build.gradle.kts
segment correct in this case?
Copy code
plugins {
    `kotlin-dsl`
}

...

dependencies {
    implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.10")
}
Won't this interfere with Gradle's embedded Kotlin 1.9.0? Thanks.
v
Don't confuse the version you build your plugins with, with the version of the plugin you want to apply to the project where you apply your plugins. It should not interfere, as you only define it as implementation dependency and then apply it to the target project where you apply your plugin. If you would apply the KGP in a different version to the
buildSrc
build, that is when you would get problems.
1
🙏 1