title: Javadoc with Gradle : Don't get the libraries while running javadoc task
body: <p>I am new to gradle, and I am trying to run javadoc using gradle. I have followed the <a href="http://gradle.org/docs/current/javadoc/org/gradle/api/tasks/javadoc/Javadoc.html">gradle javadoc page</a>, so I have added my next task in the build.gradle:</p>
  
  <pre><code> apply plugin: 'java'
  
  
  task myJavadocs(type: Javadoc) {
  source = sourceSets.main.allJava  }
  </code></pre>
  
  <p>My problem is, that none of the libraries of my project are added, so I get a lot of errors like the next one:</p>
  
  <pre><code>MyClass.java:7: package net.sf.oval.constraint does not exist import net.sf.oval.constraint.NotNull;
  </code></pre>
  
  <p>What am I doing wrong?</p>
  
  <p>Thanks for your time,</p>
  
  <p>Rafael   </p>