https://kotlinlang.org logo
Title
t

Tobi

03/28/2018, 7:23 AM
Does anyone work in a multi-module project and a
buildSrc
module to maintain dependencies?
c

Czar

03/28/2018, 7:49 PM
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:
plugins {
// note no version
    kotlin("jvm") 
}
// ...
dependencies {
    compile(kotlin("stdlib-jdk8"))
// ...
}
t

Tobi

03/29/2018, 4:41 PM
Hm. Same as my current state. Not very satisfying. But thanks.