# Buildship does not run eclipseWtp task

**URL:** <https://discuss.gradle.org/t/buildship-does-not-run-eclipsewtp-task/21245>\
**Category:** Buildship\
**Created:** [January 20, 2017, 5:20pm UTC](https://discuss.gradle.org/t/buildship-does-not-run-eclipsewtp-task/21245 "2017-01-20T17:20:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjstreet](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@jjstreet](https://discuss.gradle.org/u/jjstreet)\
**Post date:** [January 20, 2017, 5:20pm UTC](https://discuss.gradle.org/t/buildship-does-not-run-eclipsewtp-task/21245/1 "2017-01-20T17:20:29Z")

</div>

I’m trying to figure out why my multiproject, when imported into eclipse through buildship does not have the wst component nature attached like it should. I’m using 1.0.21 and gradle 2.14.1.

I’ve made sure every project applies the eclipse-wtp plugin by specifying it in the `allprojects` closure of the main build script. I could have sworn this worked at some point, now I’m stumped as to why its not.

What are the requirements for importing a multi-project project and having buildship run the eclipseWtp task?

---

<div class="post-metadata">

**Author:** ![st\_oehme](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/st_oehme/32/5249_2.png) [@st\_oehme](https://discuss.gradle.org/u/st_oehme)\
**Post date:** [January 20, 2017, 5:29pm UTC](https://discuss.gradle.org/t/buildship-does-not-run-eclipsewtp-task/21245/2 "2017-01-20T17:29:04Z")

</div>

This only works with Gradle 3.0+

---

<div class="post-metadata">

**Author:** ![jjstreet](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@jjstreet](https://discuss.gradle.org/u/jjstreet)\
**Post date:** [January 20, 2017, 5:32pm UTC](https://discuss.gradle.org/t/buildship-does-not-run-eclipsewtp-task/21245/3 "2017-01-20T17:32:47Z")

</div>

Something doesn’t make sense.

I could have sworn that the task was being called when I imported through my import task for oomph… and even when importing with buildship by itself. I thought this feature was dependent on just buildship 1.0.21 and not any specific gradle version? Is there something in the tooling that was added to 3.0 to allow it to run that task?

---

<div class="post-metadata">

**Author:** ![jjstreet](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@jjstreet](https://discuss.gradle.org/u/jjstreet)\
**Post date:** [January 20, 2017, 5:34pm UTC](https://discuss.gradle.org/t/buildship-does-not-run-eclipsewtp-task/21245/4 "2017-01-20T17:34:48Z")

</div>

I ran the `eclipse` task outside of buildship and lo and behold, I have a failing task thats run prior to it. Wonder if that is causing it to fail somehow?

---

<div class="post-metadata">

**Author:** ![st\_oehme](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/st_oehme/32/5249_2.png) [@st\_oehme](https://discuss.gradle.org/u/st_oehme)\
**Post date:** [January 20, 2017, 5:34pm UTC](https://discuss.gradle.org/t/buildship-does-not-run-eclipsewtp-task/21245/5 "2017-01-20T17:34:54Z")

</div>

The eclipseWtp task was broken before 3.0, that’s why we don’t run it on earlier versions.

---

<div class="post-metadata">

**Author:** ![jjstreet](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@jjstreet](https://discuss.gradle.org/u/jjstreet)\
**Post date:** [January 20, 2017, 6:23pm UTC](https://discuss.gradle.org/t/buildship-does-not-run-eclipsewtp-task/21245/6 "2017-01-20T18:23:49Z")

</div>

I see. I have no clue how I managed to get eclipseWtp tasks to execute then. It does run properly with gradle 3.0+.

Looks like I will have to push for gradle to be upgraded…
