Eclipse not publishing Dependent project to tomcat

I have multi module gradle project setup on eclipse. Say Project A(web project) includes Project B(plain java gradle project). war creation is correct as b.jar is placed in th WEB-INF/lib of the war And manualy coping war to tomcat’s web-app folder works fine.
To avoid manually copying the War to tomcat

  1. I have added tomcat(8.0.22) as a server in eclipse.
  2. added the webproject to tomcat.

Tomcat startup from eclipse fails as project b is not published to the WTPWebapp folder…