aboutsummaryrefslogtreecommitdiff
path: root/runners/gradle-plugin/src/main/kotlin
diff options
context:
space:
mode:
authorsebastian.sellmair <sebastian.sellmair@jetbrains.com>2020-07-23 14:06:59 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-07-23 15:00:22 +0200
commit5065c969e9f07086719b44d89686129f7e3504f8 (patch)
tree4f0ade7175e14fc0ee9a5537d279111414738610 /runners/gradle-plugin/src/main/kotlin
parent9806f309ae4c16f72f685c5aca1dad5d8159f48f (diff)
downloaddokka-5065c969e9f07086719b44d89686129f7e3504f8.tar.gz
dokka-5065c969e9f07086719b44d89686129f7e3504f8.tar.bz2
dokka-5065c969e9f07086719b44d89686129f7e3504f8.zip
Add link to androidx documentation by default for Android projects
Diffstat (limited to 'runners/gradle-plugin/src/main/kotlin')
-rw-r--r--runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt8
1 files changed, 8 insertions, 0 deletions
diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt
index 2253a975..f6055a8a 100644
--- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt
+++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt
@@ -16,10 +16,17 @@ import org.jetbrains.dokka.ReflectDsl.isNotInstance
import org.jetbrains.dokka.gradle.ConfigurationExtractor.PlatformData
import org.jetbrains.dokka.toJsonString
import java.io.File
+import java.net.URL
import java.util.concurrent.Callable
open class DokkaTask : AbstractDokkaTask() {
private val ANDROID_REFERENCE_URL = Builder("https://developer.android.com/reference/").build()
+
+ private val ANDROIDX_REFERENCE_URL = Builder(
+ url = URL("https://developer.android.com/reference/kotlin/"),
+ packageListUrl = URL("https://developer.android.com/reference/androidx/package-list")
+ ).build()
+
private val configExtractor = ConfigurationExtractor(project)
@Suppress("MemberVisibilityCanBePrivate")
@@ -243,6 +250,7 @@ open class DokkaTask : AbstractDokkaTask() {
if (project.isAndroidProject() && !config.noAndroidSdkLink) {
config.externalDocumentationLinks.add(ANDROID_REFERENCE_URL)
+ config.externalDocumentationLinks.add(ANDROIDX_REFERENCE_URL)
}
if (config.platform?.isNotBlank() == true) {