zachtib
10/02/2019, 1:15 PMkotlin_version defined in one place when using gradle kts and buildSrc? I’ve tried having an object inside of buildSrc, but I can’t reference that in buildSrc’s build.gradle.kts plugin block itself. I’ve tried putting it into gradle.properties and reading it out, which requried a workaround I found on github, but then didn’t work outside of the buildSrc module. This seems like something there should be a good accepted solution forThiago Nerys
10/02/2019, 1:38 PMzachtib
10/02/2019, 1:39 PMThiago Nerys
10/02/2019, 1:46 PM1.3.41), but yes, that's the Kotlin version you use in your project.zachtib
10/02/2019, 1:46 PMThiago Nerys
10/02/2019, 1:48 PMval kotlinVersion = "1.3.50" and add that to ext, then you can use the variable in your buildscript and the ext in the other modules.zachtib
10/02/2019, 1:48 PMplugin blockThiago Nerys
10/02/2019, 1:52 PMThiago Nerys
10/02/2019, 2:21 PMThe Kotlin DSL does not yet support replacement of properties in the version argument.
Thiago Nerys
10/02/2019, 3:00 PMzachtib
10/02/2019, 3:02 PMVersions object within the plugins { } block at runtimeThiago Nerys
10/02/2019, 3:04 PMbuild.gradle.kts to buildSrc root?
plugins {
`kotlin-dsl`
}
repositories {
mavenCentral()
}zachtib
10/02/2019, 3:05 PMThiago Nerys
10/02/2019, 3:08 PMThiago Nerys
10/02/2019, 3:08 PMzachtib
10/02/2019, 3:11 PMkotlin("jvm") plugin out from `buildSrc`’s build.gradle.kts file and now things are working