Publish Multi-project as a single project with dependencies

Suppose I have a multi project setup like so:

| - hammer
| - saw
| - screwdriver
\ - etc

I have tried publishing the entire toolbox as a single artifact with my publishing setup like so:

publishing {
 publications {
  mavenJava(MavenPublication) {
 repositories {
  maven {
   url "file://C:/temp/mavenRepo"

This exports all the classes in the submodules, but the pom file contains none of their dependencies! How can I make it so that all the subproject dependencies are also included into the pom?