Project dependencies can not be deployed to the WEB-INF/lib

I have ordinary java project A and webapp project B, B depends on A.

build.gradle B:

dependencies {

compile(

project(’:A’)

} }

plugin: apply plugin: ‘war’ apply plugin: ‘eclipse-wtp’

MyEclipse import project A and project B, when deployed to the tomcat, A.jar file still can not be published to /B/WEB-INF/lib, and how should I do?