package org.jetbrains.dokka import com.google.gson.Gson import org.jetbrains.dokka.DokkaBootstrapImpl.DokkaProxyLogger import org.jetbrains.dokka.utilities.DokkaLogger import java.util.function.BiConsumer class DokkaMultimoduleBootstrapImpl : DokkaBootstrap { private lateinit var generator: DokkaGenerator fun configure(logger: DokkaLogger, configuration: DokkaConfiguration) { generator = DokkaGenerator(configuration, logger) } override fun configure(logger: BiConsumer, serializedConfigurationJSON: String) = configure( DokkaProxyLogger(logger), Gson().fromJson(serializedConfigurationJSON, DokkaConfigurationImpl::class.java) ) override fun generate() { generator.generateAllModulesPage() } }