Practical and Theoretical Limitations Imposed by Buildship and the Eclipse Project Model

Posting here since I received no response on the buildship-dev mailing list. (Is that list dead?)

I’m responsible for several Gradle builds that lean heavily on the more complex features of Gradle: attribute schema extension, variant selection, additional test suites, additional source sets, custom plugins etc. I’m currently faced with the prospect of a mandated shift to Eclipse (or VSCode wrapping Eclipse) as a developer platform/IDE and I’m trying to get a handle on the scale and nature of my problems. To that end I’m trying to define or understand:

  1. What are the current limits placed on Gradle builds by the ability of Buildship to translate the Gradle build to the Eclipse Project Model.
  2. What are the theoretical limits placed on Gradle builds by the Eclipse Project Model itself.
  3. How fast is (or can) Buildship close the gap between these two limits?

Any insights on these questions would be greatly appreciated, and massively help me understand the scale of the rework required in my build-systems, and potentially in my product delivery.

Thanks,

Chris

I’m not a Gradle expert but I’ve been using it with Eclipse (+Buildship) for many years now. Unfortunately, I find your questions somewhat vague. Gradle interacts with Eclipse through the Eclipse Plugin , which is responsible for the model. Buildship sits on top of that and mostly adds UI integration, see the overview.

As to what extent does Gradle manage to configure Eclipse, if you’re using 8.14+ then mostly. See this issue as an example of a bug: files dependency is not put on the modulepath when it contains module-info in Eclipse · Issue #29296 · gradle/gradle · GitHub. Test suits work, source sets too. Custom plugins is not something that Eclipse sees, it sees the result of what they do. Variant selection I think also works when I tried it a long while ago, don’t know about schema extension.