From c3f4f75b47445dbf6ad674772a0cc919de8393eb Mon Sep 17 00:00:00 2001 From: IgnatBeresnev Date: Fri, 27 Oct 2023 19:42:35 +0200 Subject: [PATCH] Return a lost `@Optional` annotation --- .../dokka/gradle/GradleExternalDocumentationLinkBuilder.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dokka-runners/gradle-plugin-classic/src/main/kotlin/org/jetbrains/dokka/gradle/GradleExternalDocumentationLinkBuilder.kt b/dokka-runners/gradle-plugin-classic/src/main/kotlin/org/jetbrains/dokka/gradle/GradleExternalDocumentationLinkBuilder.kt index 5339fcb008..8137d7a93f 100644 --- a/dokka-runners/gradle-plugin-classic/src/main/kotlin/org/jetbrains/dokka/gradle/GradleExternalDocumentationLinkBuilder.kt +++ b/dokka-runners/gradle-plugin-classic/src/main/kotlin/org/jetbrains/dokka/gradle/GradleExternalDocumentationLinkBuilder.kt @@ -8,6 +8,7 @@ import org.gradle.api.Project import org.gradle.api.provider.Property import org.gradle.api.tasks.Input import org.gradle.api.tasks.Internal +import org.gradle.api.tasks.Optional import org.gradle.kotlin.dsl.property import org.jetbrains.dokka.DokkaConfigurationBuilder import org.jetbrains.dokka.ExternalDocumentationLink @@ -58,7 +59,7 @@ class GradleExternalDocumentationLinkBuilder( @Internal val url: Property = project.objects.property() - @Input // TODO: URL is deprecated in gradle inputs + @Input // URL is deprecated in gradle inputs internal fun getUrlString() = url.map(URL::toString) /** @@ -74,7 +75,8 @@ class GradleExternalDocumentationLinkBuilder( @Internal val packageListUrl: Property = project.objects.property() - @Input // TODO: URL is deprecated in gradle inputs + @Input // URL is deprecated in gradle inputs + @Optional internal fun getPackageListUrlString() = packageListUrl.map(URL::toString) override fun build(): ExternalDocumentationLinkImpl = ExternalDocumentationLink(