what's the most reasonable way to externalize depe...
# gradle
m
what's the most reasonable way to externalize dependency versions using kotlin-dsl, i'd assumed this would be easy to determine, but sadly, does not appear to be the case 😐 in groovy i've got:
gradle.properties
Copy code
kotlinVersion=kotlinVersion=1.2.41
and
build.gradle
Copy code
buildscript {
    ...
    dependencies {
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
        ...
}
and it is able to determine the appropriate values. in kotlin it looks like i can do
Copy code
val kotlinVersion: String by project
...
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}"
but now i've had to define it before i reference it and i might as well just inline the version there instead of int hep roperties file.