diff options
Diffstat (limited to 'runners/gradle-plugin/src/main')
-rw-r--r-- | runners/gradle-plugin/src/main/kotlin/main.kt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/runners/gradle-plugin/src/main/kotlin/main.kt b/runners/gradle-plugin/src/main/kotlin/main.kt index e7c7b99a..959698c3 100644 --- a/runners/gradle-plugin/src/main/kotlin/main.kt +++ b/runners/gradle-plugin/src/main/kotlin/main.kt @@ -116,11 +116,10 @@ open class DokkaTask : DefaultTask() { } } - val COLORS_ENABLED_PROPERTY = "kotlin.colors.enabled" @TaskAction fun generate() { - val kotlinColorsEnabledBefore = System.getProperty(COLORS_ENABLED_PROPERTY) + val kotlinColorsEnabledBefore = System.getProperty(COLORS_ENABLED_PROPERTY) ?: "false" System.setProperty(COLORS_ENABLED_PROPERTY, "false") try { loadFatJar() @@ -208,6 +207,10 @@ open class DokkaTask : DefaultTask() { @OutputDirectory fun getOutputDirectoryAsFile(): File = project.file(outputDirectory) + + companion object { + const val COLORS_ENABLED_PROPERTY = "kotlin.colors.enabled" + } } open class LinkMapping : Serializable { |