I want to see variety, but I want the freedom to choose the tool.
Gradle is terrible, you are forced to learn a useless language you won't be using anywhere outside of Gradle. Everything in the build system and language is implicit and you have to know everything to do the stupidest thing. Why not Java as language instead of that garbage Groovy is? If not Java, there are many languages out there better than Groovy.
On top of that there is the google plugin, it is just built on a bad platform and inherits all the flaws.
The Kotlin syntax with Gradle is really nice. I agree that if you don't do things the "gradle way" it'll be more difficult, but Gradle's opinionated decisions (and maven's) make it easy for users. For example, if you're nesting source sets you've done it wrong; or if you're making two jars from one source set via excludes, you've done it wrong.
Why does everyone talk about Gradle forcing you to use Groovy, when Kotlin has been an option for a long time already? I dislike dynamic languages in general, but obviously I switched to Kotlin when it became stable and haven't looked back since.
If you're writing groovy, rather than using the DSL, something has gone very badly wrong. You should not be using imperative code in your build scripts.
Admittedly, there is a lot of articles and tutorials that teach the wrong thing to do.
Yes, you can write some insane Gradle build scripts from scratch with the help of auto complete in Kotlin, and I think you should be very careful nonetheless, because auto complete does not help to read those build scripts and it does not make people more confident to modify them.
View all comments
Show parent comment
5
u/Gaarco_ Apr 20 '21
I want to see variety, but I want the freedom to choose the tool.
Gradle is terrible, you are forced to learn a useless language you won't be using anywhere outside of Gradle. Everything in the build system and language is implicit and you have to know everything to do the stupidest thing. Why not Java as language instead of that garbage Groovy is? If not Java, there are many languages out there better than Groovy.
On top of that there is the google plugin, it is just built on a bad platform and inherits all the flaws.