In terms of the long term objectives of gradle, on...
# gradle
b
In terms of the long term objectives of gradle, once 1.0 is released, will kotlin gradle kotlin dsl be the 'recommended' language for a build in gradle? For instance will we see more example being done in kotlin like google android has done for their examples?
g
Gradle already provide Kotlin DSL docs and looks they adding much more for existing docs. Bug in case of official Android docs I suppose someone from Google should work on it. Maybe make sense to rise an issue on Android issue tracker
t
have you tried it yet? the ability to dive into sources and discoverability is vastly superior to groovy. that said certain plugins are tough to use with kotlin dsl still. some stuff in the android plugin is bad but workable with some effort applied
💯 1
g
Also samples on official Kotlin-DSL tracker are pretty good, including Android
👍 1
b
Im not an android developer myself. I was using their examples as a reference to a transition from one language to another. I havent used gradle kotlin dsl since maybe 2 or 3 minor version since the recent milestone. I love the idea of static build scripts but i have run into issues with gradle not being able to run with intellij or intellij not being able to do any indexing with big red syntax of death. I guess my overall question is: is the company as a whole moving to gradle kotlin script ( and groovy is going to be a eventually depracated ) or is this a team that is promoting one alternative to groovy that may be deprecated in the future?
👍 1
g
not being able to run with intellij or intellij not being able to do any indexing
There is a big work on improving scripting in Intellij from Gradle and JetBrains, so every release it’s better and better. We use it on a couple of I don’t think that Groovy will be deprecated in Gradle, there is so huge amount of configs over there that doesn’t make sense to migrate. Also Gradle team said that they will never drop support of Groovy configs Groovy and Kotlin will be supported at the same time
is the company as a whole moving to gradle kotlin script
Which company?
But it’s not release yet, some harsh experience present sometimes, but Kotlin DSL and IDE support improved a lot last few months
👍 1
b
The company = gradle, inc
I am just trying to get answers from questions i would get from some coworkers
g
Gradle Inc of sure will support Kotlin and Groovy
But Gradle also spent a lot of effort and did great job to support Kotlin, so I think they believe that Kotlin and statically typed configs have a lot of sense
c
Gradle people specifically stated in several places and mediums that they recommend Kotlin to be used where possible, but Groovy will not be deprecated in the foreseeable future, they intend to fully support both languages.