Skip to content

Commit

Permalink
Return a lost @Optional annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnatBeresnev committed Oct 27, 2023
1 parent b3913d0 commit c3f4f75
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -58,7 +59,7 @@ class GradleExternalDocumentationLinkBuilder(
@Internal
val url: Property<URL> = 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)

/**
Expand All @@ -74,7 +75,8 @@ class GradleExternalDocumentationLinkBuilder(
@Internal
val packageListUrl: Property<URL> = 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(
Expand Down

0 comments on commit c3f4f75

Please sign in to comment.