hi there I am trying to use the gradle kotlin dsl ...
# gradle
c
hi there I am trying to use the gradle kotlin dsl and define properties in the following way:
var kotlin_version by extra { "1.1.60" }
and I am getting an unresolved reference 😞 even though I have seen some examples that do that instead I have to do this:
Copy code
var kotlin_version: String by extra
kotlin_version = "1.1.60"
am I doing something wrong?
c
Copy code
val kotlinVersion by extra { "1.1.60" }

println (kotlinVersion)
works for me, can you post your build.gradle.kts
c
fixed by starting everything over, re-installing gradle, kotlin and clearing my cache. I think it was using the wrong version somewhere