From ee425e0b1e39245f5e1106bbb0888e557e6fbfcd Mon Sep 17 00:00:00 2001 From: "sebastian.sellmair" Date: Tue, 9 Jun 2020 13:40:03 +0200 Subject: Implement "failOnWarning" option --- .../src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt | 4 ++++ .../kotlin/org/jetbrains/dokka/gradle/configurationImplementations.kt | 1 + 2 files changed, 5 insertions(+) (limited to 'runners/gradle-plugin/src/main/kotlin/org/jetbrains') diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt index cad5e34f..2f821209 100644 --- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt +++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt @@ -85,6 +85,9 @@ open class DokkaTask : DefaultTask(), Configurable { @Input var disableAutoconfiguration: Boolean = false + @Input + var failOnWarning: Boolean = false + @Input var offlineMode: Boolean = false @@ -199,6 +202,7 @@ open class DokkaTask : DefaultTask(), Configurable { passesConfigurations = defaultModulesConfiguration pluginsClasspath = pluginsClasspathConfiguration.resolve().toList() pluginsConfiguration = this@DokkaTask.pluginsConfiguration + failOnWarning = this@DokkaTask.failOnWarning } } 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 2787bb4e..3e08d27d 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 @@ -131,6 +131,7 @@ class GradleDokkaConfigurationImpl: DokkaConfiguration { override var pluginsClasspath: List = emptyList() override var pluginsConfiguration: Map = mutableMapOf() override var modules: List = emptyList() + override var failOnWarning: Boolean = false } class GradlePackageOptionsImpl: PackageOptions, Serializable { -- cgit