Publish a library to Maven without project compile dependencies

I have a java-library library project that has compile-time dependency on a couple other libraries:

dependencies {
  compile project(':other-library')
  ...
}

Each library has a Maven publication defined in build.gradle (via maven-publish plugin). When I publish my library (gradle publish), all dependencies are published as well. I would like to have a way to publish just the root project library. How can I do this?