just move that one out of the ext block as well?
# gradle
b
just move that one out of the ext block as well?
c
I don't understand the question.
b
thats what I've got so far
so the stuff inside the builscript.ext block, where do I move that?
if I move it outside like https://dpaste.de/KkXa it fails with unresolved references
c
In groovy file you're assigning values, but in kotlin you're trying to retrieve them
b
from where? settings.gradle.kts?
c
Copy code
ext {
    kotlinVersion = '1.2.60'
}
would be the same as:
Copy code
extra["kotlinVersion"] = "1.2.60"
b
aaaaaaaah
c
ext is a map
or Properties (don't remember)
Best practice though is to use a Versions object from
buildSrc
instead of
extra
This way you get auto-completion and Ctrl+clicks 🙂
b
just starting out with gradle so I have very little knowledge yet. Still simpler than maven
c
There are examples in the blog at the link I posted above
b
hm, kinda looks like a hack
nonetheless thank you
c
If you're just starting out I'd suggest to work through gradle docs: https://gradle.org/guides/#getting-started Actually using ext is a hack 🙂 buildSrc is way to go with gradle 😄
You're welcome
b
I see 😞
🙂