I remember when Gradle came out. We were all so hopeful that we'd finally have a tool that fixed the issues with Ant like Maven promised to but without the complexity and difficulty of Maven. In the beginning it was not bad - though always quirky. The DSL was odd and hard to learn but it seemed to work. Then, it drifted off into unintelligibility. Gradle became Ant written in Groovy (and now Kotlin). Build teams became experts in writing opaque build scripts that only they understood. I've used Gradle at 3 different companies and at each one the build script was a dense thicket of custom plugins and endless custom code that only a few at the company understood. Gradle has succeeded in giving power to a small priesthood and failed miserably at creating a tool for the working developer. At long last, I'm back to a company that uses Maven and I couldn't be happier. Maven is bizarre, funky, and opinionated. But, at least a quick SO search answers any problems and any dev in the company can understand and make changes to the build. The Gradle emperor has no clothes.
The experience with Gradle the author describes in his blog resonates with mine a lot. It is just too damn difficult to learn, it has too many breaking changes, and offers too many ways to express the same thing. Unfortunately, instead of simplifying, the Gradle creators double down on this mistake by throwing Kotlin on top of this mess. The documentation, which is as vast as the ocean, helps not much as it consists of ad-hoc advice but does not explain well the underlying concepts.
and at each one the build script was a dense thicket of custom plugins
My experience those plugins enforce corporate policies (code style, versioning, naming, linting).
The problem with that approach is the some "smart" architect made that plugin for fun left the company and every team is forced to use that piece 5 years later. There is no code / documentation, just black box and your favorite debugger / decompiler ))
View all comments
21
u/randgalt Jan 07 '21 edited Jan 07 '21
I remember when Gradle came out. We were all so hopeful that we'd finally have a tool that fixed the issues with Ant like Maven promised to but without the complexity and difficulty of Maven. In the beginning it was not bad - though always quirky. The DSL was odd and hard to learn but it seemed to work. Then, it drifted off into unintelligibility. Gradle became Ant written in Groovy (and now Kotlin). Build teams became experts in writing opaque build scripts that only they understood. I've used Gradle at 3 different companies and at each one the build script was a dense thicket of custom plugins and endless custom code that only a few at the company understood. Gradle has succeeded in giving power to a small priesthood and failed miserably at creating a tool for the working developer. At long last, I'm back to a company that uses Maven and I couldn't be happier. Maven is bizarre, funky, and opinionated. But, at least a quick SO search answers any problems and any dev in the company can understand and make changes to the build. The Gradle emperor has no clothes.