Publish Multi-project as a single project with dependencies

Suppose I have a multi project setup like so:

toolbox
| - 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) {
   from components.java
  }
 }
 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?