title: Gradle - how to specify javadoc location jar file for maven dependency?
body: <p>I want to add local javadoc jar to maven dependency. Is it possible? If yes, how can I do it? The problem is that I've got maven dependency which contains transitive jars</p>
  
  <pre><code>dependencies {
      compile 'org.eclipse.persistence:eclipselink:2.5.0'
  }
  </code></pre>
  
  <p><code>gradle dependencies</code> command returned this:</p>
  
  <pre><code>compile - Compile classpath for source set 'main'.
  +--- org.eclipse.persistence:eclipselink:2.5.0
       +--- org.eclipse.persistence:javax.persistence:2.1.0
       \--- org.eclipse.persistence:commonj.sdo:2.1.1
  </code></pre>
  
  <p>Main dependency <code>eclipselink</code> contains javadoc for <code>javax.persistence</code> so I can't see javadoc hints in eclipse editor. What I want to do is to connect <code>eclipselink</code> javadoc to <code>javax.persistence</code>.</p>
  
  <p>This is what I expect:</p>
  
  <pre><code>dependencies {
      compile 'org.eclipse.persistence:javax.persistence:2.1.0' {
          javadoc = &lt;path to javadoc&gt;
      }
  }
  </code></pre>