aboutsummaryrefslogtreecommitdiff
path: root/runners/gradle-plugin/src/main/kotlin
diff options
context:
space:
mode:
authorsebastian.sellmair <sebastian.sellmair@jetbrains.com>2020-06-09 13:40:03 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-06-15 19:17:11 +0200
commitee425e0b1e39245f5e1106bbb0888e557e6fbfcd (patch)
tree4348359dc6c95129d33d2468ec3be86e4a95491e /runners/gradle-plugin/src/main/kotlin
parentbae2c8de63baf0c0b627a17ae179400fbc3c5be9 (diff)
downloaddokka-ee425e0b1e39245f5e1106bbb0888e557e6fbfcd.tar.gz
dokka-ee425e0b1e39245f5e1106bbb0888e557e6fbfcd.tar.bz2
dokka-ee425e0b1e39245f5e1106bbb0888e557e6fbfcd.zip
Implement "failOnWarning" option
Diffstat (limited to 'runners/gradle-plugin/src/main/kotlin')
-rw-r--r--runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt4
-rw-r--r--runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/configurationImplementations.kt1
2 files changed, 5 insertions, 0 deletions
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
@@ -86,6 +86,9 @@ open class DokkaTask : DefaultTask(), Configurable {
var disableAutoconfiguration: Boolean = false
@Input
+ var failOnWarning: Boolean = false
+
+ @Input
var offlineMode: Boolean = false
private var outputDiagnosticInfo: Boolean =
@@ -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<File> = emptyList()
override var pluginsConfiguration: Map<String, String> = mutableMapOf()
override var modules: List<GradleDokkaModuleDescription> = emptyList()
+ override var failOnWarning: Boolean = false
}
class GradlePackageOptionsImpl: PackageOptions, Serializable {