Gradle Ear assembly

I am toying around with a project that looks something like this…

application
- app-ear
- app-ejb
- app-web
- app-data

both app-ejb and app-web have app-data as a dependency, by which I mean app-data.jar is in the application/lib folder in the ear proj and in the WEB-INF/lib of the app-web proj. I have it
listed as a dependency like:

dependencies{
compile project(":app-data")

}

which doesn’t seem to be working. Is there another tag I should be using?

Thanks,

John