title: Gradle maven-publish plugin produces pom with no dependencies
body: <p>I have a project which has a <code>SharedCode</code> (Java) module and secondly an <code>Android</code> (Android library) module which depends on the <code>SharedCode</code> module. I've previously been using the <code>maven</code> plugin in my <code>build.gradle</code> files and I've been using the <code>uploadArchives</code> task of that plugin to publish the artifacts from my two modules. This has worked and produced pom files which reflect the dependencies in my <code>build.gradle</code> files.</p>
  <p>I thought I'd replace the old <code>maven</code> plugin with the new <code>maven-publish</code> plugin. However, I see that the pom files produced by the <code>maven-publish</code> plugin contain no dependencies. Is this by design, is this a bug in the plugin or am I using the plugin incorrectly?</p>
  <p>The <code>build.gradle</code> file in my <code>SharedCode</code> module is as follows:</p>
  <pre><code>apply plugin: 'java'
  apply plugin: 'maven-publish'
  
  group = &quot;${projectGroupId}&quot;
  version = &quot;${projectVersionName}&quot;
  
  dependencies {
      compile 'com.google.guava:guava:18.0'
  }
  
  publishing {
      publications {
          SharedCode(MavenPublication) {
              groupId &quot;${projectGroupId}&quot;
              artifactId 'SharedCode'
              version &quot;${projectVersionName}&quot;
              artifact(&quot;$buildDir/libs/SharedCode-${projectVersionName}.jar&quot;)
          }
      }
  }
  </code></pre>
  <p>The <code>build.gradle</code> file in my <code>Android</code> module is as follows:</p>
  <pre><code>apply plugin: 'com.android.library'
  apply plugin: 'maven-publish'
  
  group = &quot;${projectGroupId}&quot;
  version = &quot;${projectVersionName}&quot;
  
  android {
      // android stuff here...
  }
  
  dependencies {
      compile project(':SharedCode')
  }
  
  publishing {
      publications {
          Android(MavenPublication) {
              groupId &quot;${projectGroupId}&quot;
              artifactId 'Android'
              version &quot;${projectVersionName}&quot;
              artifact &quot;$buildDir/outputs/aar/Android-release.aar&quot;
          }
      }
  }
  </code></pre>
  <p>The pom file created from the <code>SharedCode</code> module is as follows:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;project xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0
          http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;
          xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot;
          xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
  
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;com.mycompany.sdk&lt;/groupId&gt;
      &lt;artifactId&gt;SharedCode&lt;/artifactId&gt;
      &lt;version&gt;0.0.2&lt;/version&gt;
  
  &lt;/project&gt;
  </code></pre>
  <p>The pom file created from the <code>Android</code> module is as follows:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;project xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0
          http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;
          xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot;
          xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
  
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;com.mycompany.sdk&lt;/groupId&gt;
      &lt;artifactId&gt;Android&lt;/artifactId&gt;
      &lt;version&gt;0.0.2&lt;/version&gt;
      &lt;packaging&gt;aar&lt;/packaging&gt;
  
  &lt;/project&gt;
  </code></pre>
  <p>Note the absence of the dependencies in the pom files.</p>