Does anyone work in a multi-module project and a `...
# gradle
t
Does anyone work in a multi-module project and a
buildSrc
module to maintain dependencies?
c
From what I've seen, although I'm not expert and can be mistaken, in buildSrc you're stuck with Kotlin version embedded in gradle distribution you're using. Everywhere else you can set Kotlin version you want. I myself use
buildSrc
like that. I have
versions
object in buildSrc and in
gradle.settings.kts
I'm reading kotlin version from that object and setting it for the plugin, all other references infer version from the plugin:
Copy code
plugins {
// note no version
    kotlin("jvm") 
}
// ...
dependencies {
    compile(kotlin("stdlib-jdk8"))
// ...
}
t
Hm. Same as my current state. Not very satisfying. But thanks.