From 86fcfb73d2d5124ae7748a80db29bdbb68607be4 Mon Sep 17 00:00:00 2001 From: "sebastian.sellmair" Date: Fri, 14 Aug 2020 13:42:08 +0200 Subject: Print maturity warning when running dokka --- core/src/main/kotlin/DokkaGenerator.kt | 2 ++ core/src/main/kotlin/printDokkaMaturityWarning.kt | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 core/src/main/kotlin/printDokkaMaturityWarning.kt (limited to 'core') 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") +} -- cgit