exercism / kotlin

Exercism exercises in Kotlin.
https://exercism.org/tracks/kotlin
MIT License
223 stars 194 forks source link

Convert `_template` build-file to Kotlin DSL. #335

Closed dector closed 4 years ago

dector commented 4 years ago

I suggest also adding gradlew/gradlew.bat and wrapper files into _template as well.

dector commented 4 years ago

@eparovyshnaya What do you think about it?

eparovyshnaya commented 4 years ago

That would be consistent and a bit witty :)

It will just work for those students who are not interested, and will introduce Kotlin DSL power for the ones who will dig deeper.

Besides, despite KotlinDSL is less documented and is not very popular, it is recommended by Gradle Team at least for IJ Idea users as it has better IDE integrations.

dector commented 4 years ago

Kotlin DSL in Gradle is more or less mature now. I'm unsing it since it was introduced and I see significant improvements over time.

I find official documentation here and here quite good. IDE support become much-much better as well.

There are few flows though (like dynamic environment compilation) but currently I'm using Kotlin DSL in production and not going to get back to Groovy scripts. :)

eparovyshnaya commented 4 years ago

Agree, evolution is quick and significant. A year (or so) ago there even was no primer on the gradle's site. We still do not have wordy dsl reference, but generated KDoc for api is available.

Eitherway, the idea to exploit it to build exercises is nice both for students and maintainers. Let's benefit from the language of choice from this side too.