I know this is a total non-issue, but why does adding kotlin to a
build.gradle
require so many steps? Groovy, for example, only requires
apply plugin: 'groovy'
. Just curious about this
a
Andreas Sinz
07/10/2018, 10:27 PM
are you talking about the
buildscript { ... }
stuff or
kotlin { ... }
?
n
nwh
07/10/2018, 10:27 PM
The
buildscript
block. Does that enable the
kotlin
block?
a
Andreas Sinz
07/10/2018, 10:28 PM
because groovy is bundled with gradle (gradle is written in groovy). in order to get kotlin running you need to tell gradle where to find the gradle-kotlin-plugin
n
nwh
07/10/2018, 10:29 PM
Ah, I see. I knew Gradle was written in Groovy, but I had forgotten that they bundled the entire Groovy plugin with it. I wonder if Kotlin could be bundled, too..
a
Andreas Sinz
07/10/2018, 10:31 PM
your
build.gradle
is just ordinary groovy code
n
nwh
07/10/2018, 10:32 PM
They could do that without bundling the groovy plugin. I think it's two separate things
a
Andreas Sinz
07/10/2018, 10:38 PM
Theoretically kotlin could be bundled with gradle, but the question is why should they bundle kotlin and not scala or clojure?