title: Gradle Kotlin DSL: subdirectory for javadoc in jar file
body: <p>I currently have the following configuration in my build.gradle.kts:</p>
  
  <pre><code>tasks.withType&lt;Jar&gt; {
      manifest {
          attributes["Multi-Release"] = "true"
      }
      from(sourceSets["main"].allSource)
      from(sourceSets["test"].allSource)
      from(tasks["javadoc"])
  }
  </code></pre>
  
  <p>When I run the jar task, the generated javadoc html files are included in the exported jar. However, I want to include the javadoc in a subdirectory called "javadoc". How can I achieve this, i.e. change the output location of the generated javadoc?</p>