buildship icon indicating copy to clipboard operation
buildship copied to clipboard

Prefer the usage of OSGi ds services instead of the CorePlugin service registration

Open vogella opened this issue 2 years ago • 1 comments

In #1148 a deadlock was identified and I looked into the org.eclipse.buildship.core.internal.CorePlugin which registers tons of OSGi services in its start method. You should move these to OSGi DS services.

For this:

1.) Activate the DS Preferences via Windows -> Preferences -> Plug-in Development -> Ds Annotations

image

2.) This allows you to use the @Component annotation to define OSGi immediate components or OSGi services. The 1.) ensure that the IDE generates the corresponding meta-data for these services.

cc @laeubi and @HannesWell as they are working on this in platform and might be interested in helping buildship to update.

vogella avatar Apr 22 '22 10:04 vogella

If you have questions let me know but I doubt I won't be able to help here as I'm not using gradle at all...

laeubi avatar Apr 22 '22 11:04 laeubi