Hey guys! So I hope that this isn't an overly basic question here... I've seen some news about a Kotlin DSL for Gradle scripts. My question is, what does that mean for us Android devs? What can we do with a Kotlin DSL that we can't already do? I will admit that I'm not overly savvy with Gradle, but this did nonetheless pique my interest 🙂
11/26/2018, 4:56 PM
Hopefully someone more knowledgeable will chime in, but i believe there isn't much you can do with kotlin dsl that you can't already do with groovy. Its just the ability to use a single language for your code as well as to define your build, including all of the tooling that comes with that.
11/26/2018, 4:57 PM
11/26/2018, 5:02 PM
Hmmm, interesting... So in short, you can define your entire build script in Kotlin? If that's the case, then that's actually pretty cool!
11/26/2018, 5:04 PM
its still a gradle build script right, so you're not just programmatically doing things like ant or something. It looks and acts very much like the groovy you're already using. But using a kotlin dsl instead of groovy.
11/26/2018, 5:30 PM
Of course, that makes sense. Still pretty cool! Thanks for all of the insight 😁
11/26/2018, 6:38 PM
Hey @Mike Palarz - don't you worry ...very few have the groovy foo! This is part owing to the docs being hidden off somewhere on android.developers and limited auto-completion. Kotlin DSLs improve on both of these since they have inline docs and all the auto-complete you would expect from intelliJ
11/26/2018, 7:01 PM
Oh wow, awesome! I always wondered why autocomplete didn't work for me most of the time with my build scripts.... Looking forward to using this for sure! Thanks for all of the insight @David!