Eclipse WTP + Gradle Buildship not deploying all project dependencies

Hi,

I did an investigation on your problem. Here are my comments:

In the above example I first tried without the eclipse.wtp.libConfigurations section. I tried adding that to fix the problem but it has no effect

The libConfigurations configure server deployment for binary dependencies only.

I did run ‘gradle eclipseWtp’, then Add/Remove the ‘WebApp’

You don’t have to bother with that. Buildship 1.0.21 configures the WTP deployment paths and calls eclipseWtp upon project synchronisation. You can see the latter happening in the console (look for the Gradle Model Retrievals console).

I was able to create a standalone test project and put it on github:

I checked out your example. It seems that the License project is not marked as a web project. Just apply the eclipse-wtp on it, start the project synchronization (right click > Gradle > Refresh Gradle Projects) and your project will appear amongst the web modules:

1 Like