aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/defaultConfiguration.kt
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/main/kotlin/defaultConfiguration.kt')
-rw-r--r--core/src/main/kotlin/defaultConfiguration.kt24
1 files changed, 8 insertions, 16 deletions
diff --git a/core/src/main/kotlin/defaultConfiguration.kt b/core/src/main/kotlin/defaultConfiguration.kt
index 384ce392..1b79ec61 100644
--- a/core/src/main/kotlin/defaultConfiguration.kt
+++ b/core/src/main/kotlin/defaultConfiguration.kt
@@ -3,15 +3,13 @@ package org.jetbrains.dokka
import org.jetbrains.dokka.DokkaConfiguration.DokkaSourceSet
import java.io.File
import java.net.URL
-import kotlin.reflect.full.memberProperties
-import kotlin.reflect.full.primaryConstructor
data class DokkaConfigurationImpl(
override val outputDir: File = DokkaDefaults.outputDir,
override val cacheRoot: File? = DokkaDefaults.cacheRoot,
override val offlineMode: Boolean = DokkaDefaults.offlineMode,
override val sourceSets: List<DokkaSourceSetImpl> = emptyList(),
- override val pluginsClasspath: List<File> = emptyList(),
+ override val pluginsClasspath: Set<File> = emptySet(),
override val pluginsConfiguration: Map<String, String> = emptyMap(),
override val modules: List<DokkaModuleDescriptionImpl> = emptyList(),
override val failOnWarning: Boolean = DokkaDefaults.failOnWarning
@@ -22,25 +20,25 @@ data class DokkaSourceSetImpl(
override val moduleDisplayName: String,
override val displayName: String = DokkaDefaults.sourceSetDisplayName,
override val sourceSetID: DokkaSourceSetID,
- override val classpath: List<File> = emptyList(),
- override val sourceRoots: List<SourceRootImpl>,
+ override val classpath: Set<File> = emptySet(),
+ override val sourceRoots: Set<File> = emptySet(),
override val dependentSourceSets: Set<DokkaSourceSetID> = emptySet(),
- override val samples: List<File> = emptyList(),
- override val includes: List<File> = emptyList(),
+ override val samples: Set<File> = emptySet(),
+ override val includes: Set<File> = emptySet(),
override val includeNonPublic: Boolean = DokkaDefaults.includeNonPublic,
override val includeRootPackage: Boolean = DokkaDefaults.includeRootPackage,
override val reportUndocumented: Boolean = DokkaDefaults.reportUndocumented,
override val skipEmptyPackages: Boolean = DokkaDefaults.skipEmptyPackages,
override val skipDeprecated: Boolean = DokkaDefaults.skipDeprecated,
override val jdkVersion: Int = DokkaDefaults.jdkVersion,
- override val sourceLinks: List<SourceLinkDefinitionImpl> = emptyList(),
+ override val sourceLinks: Set<SourceLinkDefinitionImpl> = emptySet(),
override val perPackageOptions: List<PackageOptionsImpl> = emptyList(),
- override var externalDocumentationLinks: List<ExternalDocumentationLinkImpl> = emptyList(),
+ override var externalDocumentationLinks: Set<ExternalDocumentationLinkImpl> = emptySet(),
override val languageVersion: String? = null,
override val apiVersion: String? = null,
override val noStdlibLink: Boolean = DokkaDefaults.noStdlibLink,
override val noJdkLink: Boolean = DokkaDefaults.noJdkLink,
- override val suppressedFiles: List<File> = emptyList(),
+ override val suppressedFiles: Set<File> = emptySet(),
override val analysisPlatform: Platform = DokkaDefaults.analysisPlatform
) : DokkaSourceSet
@@ -50,12 +48,6 @@ data class DokkaModuleDescriptionImpl(
override val docFile: File
) : DokkaConfiguration.DokkaModuleDescription
-data class SourceRootImpl(
- override val directory: File
-) : DokkaConfiguration.SourceRoot {
- constructor(directoryPath: String) : this(File(directoryPath))
-}
-
data class SourceLinkDefinitionImpl(
override val path: String,
override val url: String,