diff options
author | sebastian.sellmair <sebastian.sellmair@jetbrains.com> | 2020-08-14 13:42:08 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-08-17 09:05:06 +0200 |
commit | 86fcfb73d2d5124ae7748a80db29bdbb68607be4 (patch) | |
tree | e18d6e59cc75821b4f3143d73e46e24b1c75b14b /core | |
parent | b19ce3c7622666bd638baf2f840e898bb00efd90 (diff) | |
download | dokka-86fcfb73d2d5124ae7748a80db29bdbb68607be4.tar.gz dokka-86fcfb73d2d5124ae7748a80db29bdbb68607be4.tar.bz2 dokka-86fcfb73d2d5124ae7748a80db29bdbb68607be4.zip |
Print maturity warning when running dokka
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/kotlin/DokkaGenerator.kt | 2 | ||||
-rw-r--r-- | core/src/main/kotlin/printDokkaMaturityWarning.kt | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/core/src/main/kotlin/DokkaGenerator.kt b/core/src/main/kotlin/DokkaGenerator.kt index 4262d890..2ba0c0a4 100644 --- a/core/src/main/kotlin/DokkaGenerator.kt +++ b/core/src/main/kotlin/DokkaGenerator.kt @@ -19,6 +19,8 @@ class DokkaGenerator( private val logger: DokkaLogger ) { fun generate() = timed(logger) { + printDokkaMaturityWarning(logger) + report("Initializing plugins") val context = initializePlugins(configuration, logger) diff --git a/core/src/main/kotlin/printDokkaMaturityWarning.kt b/core/src/main/kotlin/printDokkaMaturityWarning.kt new file mode 100644 index 00000000..b5b15f1f --- /dev/null +++ b/core/src/main/kotlin/printDokkaMaturityWarning.kt @@ -0,0 +1,7 @@ +package org.jetbrains.dokka + +import org.jetbrains.dokka.utilities.DokkaLogger + +internal fun printDokkaMaturityWarning(logger: DokkaLogger) { + logger.warn("dokka 1.4.* is an alpha project") +} |