From 2c967fb5389b0f7891b59d8a9334e4efca546b46 Mon Sep 17 00:00:00 2001 From: "sebastian.sellmair" Date: Thu, 9 Jul 2020 16:30:36 +0200 Subject: Remove `format` from dokka DokkaConfiguration --- runners/maven-plugin/src/main/kotlin/DokkaMojo.kt | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'runners/maven-plugin/src/main') diff --git a/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt b/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt index aa92516f..fdd1c646 100644 --- a/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt +++ b/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt @@ -170,8 +170,6 @@ abstract class AbstractDokkaMojo : AbstractMojo() { protected abstract fun getOutDir(): String - protected abstract fun getOutFormat(): String - override fun execute() { if (skip) { log.info("Dokka skip parameter is true so no dokka output will be produced") @@ -239,7 +237,6 @@ abstract class AbstractDokkaMojo : AbstractMojo() { val configuration = DokkaConfigurationImpl( outputDir = getOutDir(), - format = getOutFormat(), offlineMode = offlineMode, cacheRoot = cacheRoot, sourceSets = listOf(sourceSet).also { @@ -319,13 +316,9 @@ abstract class AbstractDokkaMojo : AbstractMojo() { requiresProject = true ) class DokkaMojo : AbstractDokkaMojo() { - @Parameter(required = true, defaultValue = "html") - var outputFormat: String = "html" - @Parameter(required = true, defaultValue = "\${project.basedir}/target/dokka") var outputDir: String = "" - override fun getOutFormat() = outputFormat override fun getOutDir() = outputDir } @@ -339,8 +332,6 @@ class DokkaMojo : AbstractDokkaMojo() { class DokkaJavadocMojo : AbstractDokkaMojo() { @Parameter(required = true, defaultValue = "\${project.basedir}/target/dokkaJavadoc") var outputDir: String = "" - - override fun getOutFormat() = "javadoc" override fun getOutDir() = outputDir } @@ -396,7 +387,6 @@ class DokkaJavadocJarMojo : AbstractDokkaMojo() { @Component(role = Archiver::class, hint = "jar") private var jarArchiver: JarArchiver? = null - override fun getOutFormat() = "javadoc" override fun getOutDir() = outputDir override fun execute() { -- cgit