https://kotlinlang.org logo
Title
j

jordanjennings

06/26/2018, 5:39 PM
plugins {
    java
    kotlin("jvm") version "1.2.50"
    id("org.jetbrains.kotlin.plugin.spring") version "1.2.50"
    id("org.springframework.boot") version "2.0.3.RELEASE"
    id("io.spring.dependency-management") version "1.0.5.RELEASE"
}
c

Czar

06/27/2018, 8:11 AM
My approach is: define all versions in constants in
object Versions
in buildSrc, then configure them from settings.gradle.kts
As an alternative, you could put versions in gradle.properties and configure them from settings.gradle.kts
s

suresh

06/27/2018, 3:36 PM
I am using gradle.properties, but a slightly different way, https://github.com/sureshg/kotlin-scratchpad/blob/master/build.gradle.kts#L8
j

jordanjennings

06/27/2018, 5:04 PM
@Czar I see what you mean, but it's surprising that such a workaround is required for something I would have expected to be simple
c

Czar

06/27/2018, 5:17 PM
yup, I share your pain. You could go to gradle issue tracker and vote on relevant issues, there are a couple.