From 729362b672c92dc035f81e6f9dcb924829a4bff9 Mon Sep 17 00:00:00 2001 From: Kamil Doległo Date: Thu, 2 Jul 2020 11:45:19 +0200 Subject: Replace direct creation of ExternalDocumentationLink with ExternalDocumentationLink.Builder --- .../kotlin/org/jetbrains/dokka/gradle/configurationImplementations.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runners/gradle-plugin/src/main/kotlin') diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/configurationImplementations.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/configurationImplementations.kt index c5169ef8..a28416d6 100644 --- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/configurationImplementations.kt +++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/configurationImplementations.kt @@ -126,13 +126,13 @@ open class GradleDokkaSourceSet(@Transient val name: String = "") : DokkaSourceS fun externalDocumentationLink(c: Closure) { val link = ConfigureUtil.configure(c, GradleExternalDocumentationLinkImpl()) - externalDocumentationLinks.add(link) + externalDocumentationLinks.add(ExternalDocumentationLink.Builder(link.url, link.packageListUrl).build()) } fun externalDocumentationLink(action: Action) { val link = GradleExternalDocumentationLinkImpl() action.execute(link) - externalDocumentationLinks.add(link) + externalDocumentationLinks.add(ExternalDocumentationLink.Builder(link.url, link.packageListUrl).build()) } } -- cgit