aboutsummaryrefslogtreecommitdiff
path: root/runners/cli
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2020-07-02 11:45:19 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-07-06 10:28:49 +0200
commit729362b672c92dc035f81e6f9dcb924829a4bff9 (patch)
tree561c3612225aa4914d722c011e97f9db138c62c8 /runners/cli
parent894fba7409dd5a2f306038cf436b878d9d160974 (diff)
downloaddokka-729362b672c92dc035f81e6f9dcb924829a4bff9.tar.gz
dokka-729362b672c92dc035f81e6f9dcb924829a4bff9.tar.bz2
dokka-729362b672c92dc035f81e6f9dcb924829a4bff9.zip
Replace direct creation of ExternalDocumentationLink with ExternalDocumentationLink.Builder
Diffstat (limited to 'runners/cli')
-rw-r--r--runners/cli/src/main/kotlin/cli/main.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/runners/cli/src/main/kotlin/cli/main.kt b/runners/cli/src/main/kotlin/cli/main.kt
index 37c13442..b0fb45b2 100644
--- a/runners/cli/src/main/kotlin/cli/main.kt
+++ b/runners/cli/src/main/kotlin/cli/main.kt
@@ -105,6 +105,9 @@ class GlobalArguments(args: Array<String>) : DokkaConfiguration {
sourceSets.forEach {
it.externalDocumentationLinks.cast<MutableList<ExternalDocumentationLink>>().addAll(defaultLinks(it))
+ it.externalDocumentationLinks.cast<MutableList<ExternalDocumentationLink>>().replaceAll { link ->
+ ExternalDocumentationLink.Builder(link.url, link.packageListUrl).build()
+ }
}
}
}