aboutsummaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorsebastian.sellmair <sebastian.sellmair@jetbrains.com>2020-07-20 10:38:22 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-07-20 12:02:45 +0200
commitfbed0982653cd20019fe3d56c6b4e5d7e7a72aad (patch)
treed3b703dab37df2d68563538b3613e801d1f1ae07 /core/src
parent68cba1e81a6bc971e0cd0be535232cc99756cd81 (diff)
downloaddokka-fbed0982653cd20019fe3d56c6b4e5d7e7a72aad.tar.gz
dokka-fbed0982653cd20019fe3d56c6b4e5d7e7a72aad.tar.bz2
dokka-fbed0982653cd20019fe3d56c6b4e5d7e7a72aad.zip
Implement DokkaConfigurationSerializableTest
Diffstat (limited to 'core/src')
-rw-r--r--core/src/main/kotlin/configuration.kt17
1 files changed, 9 insertions, 8 deletions
diff --git a/core/src/main/kotlin/configuration.kt b/core/src/main/kotlin/configuration.kt
index 08a3f07a..7e4a3d94 100644
--- a/core/src/main/kotlin/configuration.kt
+++ b/core/src/main/kotlin/configuration.kt
@@ -5,6 +5,7 @@ package org.jetbrains.dokka
import org.jetbrains.dokka.utilities.toJsonString
import org.jetbrains.dokka.utilities.parseJson
import java.io.File
+import java.io.Serializable
import java.net.URL
object DokkaDefaults {
@@ -53,7 +54,7 @@ enum class Platform(val key: String) {
data class DokkaSourceSetID(
val moduleName: String,
val sourceSetName: String
-) {
+) : Serializable {
override fun toString(): String {
return "$moduleName/$sourceSetName"
}
@@ -67,7 +68,7 @@ fun DokkaConfiguration.toJsonString(): String {
return toJsonString(this)
}
-interface DokkaConfiguration {
+interface DokkaConfiguration : Serializable {
val outputDir: String
val cacheRoot: String?
val offlineMode: Boolean
@@ -77,7 +78,7 @@ interface DokkaConfiguration {
val pluginsClasspath: List<File>
val pluginsConfiguration: Map<String, String>
- interface DokkaSourceSet {
+ interface DokkaSourceSet: Serializable {
val sourceSetID: DokkaSourceSetID
val displayName: String
val moduleDisplayName: String
@@ -103,23 +104,23 @@ interface DokkaConfiguration {
val analysisPlatform: Platform
}
- interface SourceRoot {
+ interface SourceRoot: Serializable {
val path: String
}
- interface SourceLinkDefinition {
+ interface SourceLinkDefinition: Serializable {
val path: String
val url: String
val lineSuffix: String?
}
- interface DokkaModuleDescription {
+ interface DokkaModuleDescription : Serializable {
val name: String
val path: String
val docFile: String
}
- interface PackageOptions {
+ interface PackageOptions : Serializable{
val prefix: String
val includeNonPublic: Boolean
val reportUndocumented: Boolean?
@@ -127,7 +128,7 @@ interface DokkaConfiguration {
val suppress: Boolean
}
- interface ExternalDocumentationLink {
+ interface ExternalDocumentationLink : Serializable {
val url: URL
val packageListUrl: URL