I asked a question similar to yours a while back. Buildship does execute eclipse and eclipseWtp tasks if such tasks are available (from applying the plugins). It does this on gradle 3.0+.
It does not do this for earlier versions of gradle because those tasks were essentially busted.
You could make one of those tasks depend on your custom task, or make your custom task run after one of those via mustRunAfter
Also note that buildship is a young project still very much in development. You could offer your suggestions as issues in github as well.
i’ve not actually tried to do what you attempting. I was just brainstorming. You might want to make sure you use buildship 2.0+ too, it might be related to that as well.
What kind of task do you need to accomplish when you import into eclipse? The eclipse plugins should have you covered for most of your needs.
Ok thanks for the clarification.
So let’s say I use the gradle node plugin, then I have no way to execute the npmInstall task when importing or refreshing my project ?