diff options
author | sebastian.sellmair <sebastian.sellmair@jetbrains.com> | 2020-06-09 13:40:03 +0200 |
---|---|---|
committer | Sebastian Sellmair <34319766+sellmair@users.noreply.github.com> | 2020-06-15 19:17:11 +0200 |
commit | ee425e0b1e39245f5e1106bbb0888e557e6fbfcd (patch) | |
tree | 4348359dc6c95129d33d2468ec3be86e4a95491e /runners/maven-plugin | |
parent | bae2c8de63baf0c0b627a17ae179400fbc3c5be9 (diff) | |
download | dokka-ee425e0b1e39245f5e1106bbb0888e557e6fbfcd.tar.gz dokka-ee425e0b1e39245f5e1106bbb0888e557e6fbfcd.tar.bz2 dokka-ee425e0b1e39245f5e1106bbb0888e557e6fbfcd.zip |
Implement "failOnWarning" option
Diffstat (limited to 'runners/maven-plugin')
-rw-r--r-- | runners/maven-plugin/src/main/kotlin/DokkaMojo.kt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt b/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt index 71fe5b40..5a739d5e 100644 --- a/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt +++ b/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt @@ -168,6 +168,9 @@ abstract class AbstractDokkaMojo : AbstractMojo() { var includeNonPublic: Boolean = false @Parameter + var failOnWarning: Boolean = false + + @Parameter var dokkaPlugins: List<Dependency> = emptyList() protected abstract fun getOutDir(): String @@ -250,7 +253,8 @@ abstract class AbstractDokkaMojo : AbstractMojo() { pluginsClasspath = getArtifactByAether("org.jetbrains.dokka", "dokka-base", dokkaVersion) + dokkaPlugins.map { getArtifactByAether(it.groupId, it.artifactId, it.version) }.flatten(), pluginsConfiguration = mutableMapOf(), //TODO implement as it is in Gradle - modules = emptyList() + modules = emptyList(), + failOnWarning = failOnWarning ) val gen = DokkaGenerator(configuration, logger) |