Tobi
03/12/2021, 11:57 AMDokka 1.4.20
to generate a JavaDoc artifact for my Kotlin based Android library.
The basic setup I added is:
apply plugin: "org.jetbrains.dokka"
// ...
task javadocJar(type: Jar, dependsOn: dokkaJavadoc) {
group "publishing"
description "Generates javadocJar based on Dokka"
archiveClassifier.set("javadoc")
from dokkaJavadoc.outputDirectory
}
dokkaJavadoc.configure {
moduleName.set("Roadsigns")
dokkaSourceSets {
named("main") {
sourceLink {
localDirectory.set(file("roadsigns/src/main/kotlin"))
remoteUrl.set(java.net.URL("<https://github.com/Umweltzone/roadsigns/blob/master/roadsigns/src/main/kotlin>"))
remoteLineSuffix.set("#L")
}
}
}
}
See the full configuration on this dokka
branch: https://github.com/Umweltzone/roadsigns/blob/dokka/gradle/deploy.gradle#L69-L87
▶️ I noticed that links to the GitHub sources and to the Android or Kotlin documentation are not present (see screenshot).
My understand is that noAndroidSdkLink
is disabled by default - meaning: if I do not configure it then there should be links to Android docs.
What do I have to configure to generate them?Tobi
03/13/2021, 8:39 AMKamil Doległo
03/15/2021, 2:46 PMTobi
03/15/2021, 9:32 PMTobi
03/29/2021, 7:05 AMremoteUrl.set
come into usage?