title: Gradle does not generate Javadocs
body: <p>I am writing a build file with Gradle to do Java build operations. However, Gradle does not generate Javadocs for my project. According to Gradle.org's documentation, to implement a Javadocs task in Gradle, the source and classpath have to be specified. </p>
  
  <pre><code>apply plugin: 'java'
  
  javadoc {
  source = sourceSets.main.allJava
  classpath = configurations.compile
  }
  </code></pre>
  
  <p>However, when I run the command <code>gradle javadoc</code>, or <code>gradle build</code>, the default folder for javadocs (build\docs) is never created, so no html files are generated for the project. What can I do to fix this?</p>