aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/src/main/kotlin/configuration.kt2
-rw-r--r--core/src/main/kotlin/defaultConfiguration.kt4
-rw-r--r--runners/cli/src/main/kotlin/cli/main.kt11
3 files changed, 11 insertions, 6 deletions
diff --git a/core/src/main/kotlin/configuration.kt b/core/src/main/kotlin/configuration.kt
index 4a6b7d68..19835fa4 100644
--- a/core/src/main/kotlin/configuration.kt
+++ b/core/src/main/kotlin/configuration.kt
@@ -32,7 +32,7 @@ interface DokkaConfiguration {
val cacheRoot: String?
val passesConfigurations: List<PassConfiguration>
val impliedPlatforms: List<String>
- var pluginsClasspath: List<File>
+ val pluginsClasspath: List<File>
interface PassConfiguration {
val moduleName: String
diff --git a/core/src/main/kotlin/defaultConfiguration.kt b/core/src/main/kotlin/defaultConfiguration.kt
index 6c797fcd..148bf830 100644
--- a/core/src/main/kotlin/defaultConfiguration.kt
+++ b/core/src/main/kotlin/defaultConfiguration.kt
@@ -10,7 +10,7 @@ data class DokkaConfigurationImpl(
override val cacheRoot: String?,
override val impliedPlatforms: List<String>,
override val passesConfigurations: List<PassConfigurationImpl>,
- override var pluginsClasspath: List<File>
+ override val pluginsClasspath: List<File>
) : DokkaConfiguration
data class PassConfigurationImpl (
@@ -71,4 +71,4 @@ data class PackageOptionsImpl(
data class ExternalDocumentationLinkImpl(override val url: URL,
override val packageListUrl: URL
-) : DokkaConfiguration.ExternalDocumentationLink \ No newline at end of file
+) : DokkaConfiguration.ExternalDocumentationLink
diff --git a/runners/cli/src/main/kotlin/cli/main.kt b/runners/cli/src/main/kotlin/cli/main.kt
index 5d7ec1f7..93902be5 100644
--- a/runners/cli/src/main/kotlin/cli/main.kt
+++ b/runners/cli/src/main/kotlin/cli/main.kt
@@ -15,9 +15,16 @@ open class GlobalArguments(parser: DokkaArgumentsParser) : DokkaConfiguration {
override val format: String by parser.stringOption(
listOf("-format"),
- "Output format (text, html, markdown, jekyll, kotlin-website)",
+ "Output format (text, html, gfm, jekyll, kotlin-website)",
"")
+ override val pluginsClasspath: List<File> by parser.repeatableOption(
+ listOf("-dokkaPlugins"),
+ "List of jars with dokka plugins"
+ ) {
+ File(it)
+ }
+
override val generateIndexPages: Boolean by parser.singleFlag(
listOf("-generateIndexPages"),
"Generate index page"
@@ -36,8 +43,6 @@ open class GlobalArguments(parser: DokkaArgumentsParser) : DokkaConfiguration {
) {
Arguments(parser)
}
-
- override var pluginsClasspath: List<File> = emptyList()
}
class Arguments(val parser: DokkaArgumentsParser) : DokkaConfiguration.PassConfiguration {