in my root project (groovy) I have `ext.someApiVer...
# gradle
c
in my root project (groovy) I have
ext.someApiVersion = '1.0'
, in my subprojects (groovy) I can reference it as
"dependency:$someApiVersion"
, naturally I assumed that in my kotlin-dsl subprojects I need to do
val someApiVersion: String by extra
, but that does not get resolved, what actually works is
val someApiVersion: String by rootProject.extra
Is this a bug? If this is by design, it is a bit of a strange choice as it introduces yet another asymmetry between groovy and kotlin-dsl based build files.