r/java • • Jun 08 '26

Is anyone using eclipse anymore?

159 Upvotes

193 comments sorted by

View all comments

Show parent comment

2

u/Yeah-Its-Me-777 Jun 08 '26

No, it doesn't come from the alignment with maven, it's much older. Internally, they only have dependency-locations on a per project basis, as you wrote.

To support the "test-only"-dependencies, they've added a boolean "isTest" to each dependency location, so they can differenciate between main and test dependencies, but it's more of a hack. Believe me, I've looked into it 😃

And yes, gradle supports as many source sets as you want. It's quite a bit more powerful than maven, but most of the time you don't need it. And it's pretty complex in itself. As always, there are pros and cons to everything.