diff options
author | Ignat Beresnev <ignat.beresnev@jetbrains.com> | 2023-02-20 21:45:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-20 21:45:48 +0100 |
commit | fa22175d91fd63b833c537990b79569fa3e2f97d (patch) | |
tree | 9d18b5522d34f85286ff787e150c4f533bbfedd3 /runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka | |
parent | dbff38bacb25fc3021bbdd67ac25762bc0b0d30f (diff) | |
download | dokka-fa22175d91fd63b833c537990b79569fa3e2f97d.tar.gz dokka-fa22175d91fd63b833c537990b79569fa3e2f97d.tar.bz2 dokka-fa22175d91fd63b833c537990b79569fa3e2f97d.zip |
Add the ability to pretty print DokkaConfiguration (#2872)
Diffstat (limited to 'runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka')
-rw-r--r-- | runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/AbstractDokkaTask.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/AbstractDokkaTask.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/AbstractDokkaTask.kt index dbd86fac..d7ddfc93 100644 --- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/AbstractDokkaTask.kt +++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/AbstractDokkaTask.kt @@ -182,7 +182,7 @@ abstract class AbstractDokkaTask : DefaultTask() { val pluginConfiguration = PluginConfigurationImpl( fqPluginName = P::class.qualifiedName!!, serializationFormat = DokkaConfiguration.SerializationFormat.JSON, - values = instance.toJsonString() + values = instance.toCompactJsonString() ) pluginsConfiguration.add(pluginConfiguration) } @@ -200,7 +200,7 @@ abstract class AbstractDokkaTask : DefaultTask() { @TaskAction internal open fun generateDocumentation() { DokkaBootstrap(runtime, DokkaBootstrapImpl::class).apply { - configure(buildDokkaConfiguration().toJsonString(), createProxyLogger()) + configure(buildDokkaConfiguration().toCompactJsonString(), createProxyLogger()) /** * Run in a new thread to avoid memory leaks that are related to ThreadLocal (that keeps `URLCLassLoader`) * Currently, all `ThreadLocal`s leaking are in the compiler/IDE codebase. |