aboutsummaryrefslogtreecommitdiff
path: root/buildSrc/src/main/kotlin/org/jetbrains/conventions/dokka.gradle.kts
blob: 9a193cbb267f58fb7b2f9f031bb2753a47a9a7b9 (plain)
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 })
}