If I need to get kotlin_version value in `build.gr...
# multiplatform
w
If I need to get kotlin_version value in
build.gradle.kts
from
gradle.properties
file, I can get the value by
Copy code
val kotlin_version: String = property("kotlin_version").toString()
but can’t by
Copy code
val kotlin_version: String by properties
. WHY?😂 , Anybody could tell me?
m
Shouldn't it be
val kotlin_version: String by project
? At least that worked the last time I used sth like that.
✔️ 2
b
Also if you need it in your plugins {...} block, you can have it in gradle.properties as
systemProp.kotlinVersion=xxxx
and fetch it as `val kotlinVersion:String by System.properties()
w
TKS buddy, I got it😀