From fbed0982653cd20019fe3d56c6b4e5d7e7a72aad Mon Sep 17 00:00:00 2001 From: "sebastian.sellmair" Date: Mon, 20 Jul 2020 10:38:22 +0200 Subject: Implement DokkaConfigurationSerializableTest --- .../org/jetbrains/dokka/gradle/configurationImplementations.kt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'runners/gradle-plugin/src/main/kotlin/org') 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 84f35cb4..bed73d6d 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 @@ -17,7 +17,6 @@ import org.jetbrains.dokka.DokkaDefaults import org.jetbrains.dokka.DokkaSourceSetID import org.jetbrains.dokka.Platform import java.io.File -import java.io.Serializable import java.net.URL import java.util.concurrent.Callable import kotlin.reflect.KMutableProperty @@ -25,7 +24,7 @@ import kotlin.reflect.full.memberProperties import org.gradle.api.tasks.SourceSet as GradleSourceSet import org.jetbrains.kotlin.gradle.model.SourceSet as KotlinSourceSet -class GradleSourceRootImpl : SourceRoot, Serializable { +class GradleSourceRootImpl : SourceRoot { override var path: String = "" set(value) { field = File(value).absolutePath @@ -208,13 +207,13 @@ fun GradleDokkaSourceSet.dependsOn(sourceSet: AndroidSourceSet) { dependsOn(DokkaSourceSetID(sourceSet.name)) } -class GradleSourceLinkDefinitionImpl : SourceLinkDefinition, Serializable { +class GradleSourceLinkDefinitionImpl : SourceLinkDefinition { override var path: String = "" override var url: String = "" override var lineSuffix: String? = null } -class GradleExternalDocumentationLinkImpl : ExternalDocumentationLink, Serializable { +class GradleExternalDocumentationLinkImpl : ExternalDocumentationLink { override var url: URL = URL("http://") override var packageListUrl: URL = URL("http://") } @@ -236,7 +235,7 @@ class GradleDokkaConfigurationImpl : DokkaConfiguration { override var modules: List = emptyList() } -class GradlePackageOptionsImpl : PackageOptions, Serializable { +class GradlePackageOptionsImpl : PackageOptions { override var prefix: String = "" override var includeNonPublic: Boolean = DokkaDefaults.includeNonPublic override var reportUndocumented: Boolean = DokkaDefaults.reportUndocumented -- cgit