1 2 3 4 5 6 7 8 9 10 11 12 13
package org.jetbrains.conventions import org.gradle.kotlin.dsl.invoke import org.jetbrains.isLocalPublication plugins { id("org.jetbrains.dokka") } tasks.dokkaHtml { onlyIf { !isLocalPublication } outputDirectory.set(layout.buildDirectory.dir("dokka").map { it.asFile }) }