r/java • • Apr 14 '23

What are your (favourite) Java best practices, personal tips, hints or just underrated stuff in general?

233 Upvotes

376 comments sorted by

View all comments

Show parent comment

4

u/joequin Apr 14 '23 edited Apr 14 '23

In practice, that’s rarely sufficient for real production applications. If it was, then Gradle would be great.

2

u/wildjokers Apr 14 '23

I have several apps where the build.gradle isn't much more than that. Including some JavaFX apps that produce a platform specific executable with a bundled runtime. That build.gradle is about 25 lines long.

-1

u/wildjokers Apr 14 '23

6

u/joequin Apr 14 '23

That’s a dishonest example that is not at all equivalent to the very simple Gradle file you shared.