elect
02/01/2021, 2:28 PMHow may I do that?packs the output of thewithJavadocJar()
task, so you can override this task and run dokka insidejavadoc
Kamil Doległo
02/03/2021, 9:41 AMwithJavadocJar()
for Kotlin Plugin then it’s not possible right now, I presume, as they would have to have a dependency on Dokka.
If you just want to create a task, then here you go:
register<Jar>("javadocJar") {
dependsOn(dokkaHtml)
archiveClassifier.set("javadoc")
from(dokkaOutputDir)
}
elect
02/03/2021, 11:41 AMelect
02/03/2021, 11:46 AMdokkaOutputDir
is undefinedKamil Doległo
02/03/2021, 11:52 AMdokkaHtml
to have it pointed exactly at the same directoryLukas K-G
02/08/2021, 3:19 PMtask androidJavadocsJar(type: Jar, dependsOn: dokkaJavadoc) {
archiveClassifier.set("javadoc")
from(dokkaJavadoc.outputDirectory)
}