r/java • • Mar 30 '21

The Problem with Gradle

https://www.bruceeckel.com/2021/01/02/the-problem-with-gradle/
48 Upvotes

48 comments sorted by

View all comments

40

u/Infeligo Mar 30 '21

This article has already been discussed 2 month ago:
https://www.reddit.com/r/java/comments/ksf3ku/the_problem_with_gradle/

There were some great comments and a link to the answer by one of Gradle developers.

26

u/dpash Mar 30 '21

A lot of the confusion comes from the fact that while Gradle has a vision, it should be better shared and explained. It’s also victim of its age which means success: the road towards fine grained execution, safe parallelism, configuration, … is hard and there are some APIs which are sub-optimal for this, and maintaining backwards compatibility is a day-to-day challenge.

Which I think is the biggest problem with Gradle: a lack of documentation about how to do things the modern way, but lots of articles on the web on how to do it the old wrong way.

Gradle has evolved and so has the best way to write your build scripts. Sadly there articles haven't. It'll take a while for people to catch up.

(As a maintainer of a project with 62 Gradle subprojects, I can confirm when you get it right, Gradle is hands down better than any other tool in the Java space. It just takes a while to get there)

1

u/flavius-as Mar 30 '21

I've never figured out how to use the new module system and my own directory layout.

The only thing that works exactly the way I want is writing my own shell scripts.

3

u/dpash Mar 30 '21 edited Mar 30 '21

You don't need to use the module system, and I honestly don't care where my files are as long as the IDE can find them. The Maven layout is as good as any other and there's an advantage for standardising file locations.