Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Configure dokka and work around Kotlin/dokka#294
Browse files Browse the repository at this point in the history
DanySK committed Mar 24, 2020
1 parent 487acbf commit a592440
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jetbrains.dokka.gradle.DokkaTask

plugins {
`maven-publish`
@@ -88,6 +89,12 @@ tasks.withType<Jar> {
}
}

tasks.withType<DokkaTask> {
// Workaround for https://github.com/Kotlin/dokka/issues/294
outputFormat = if(JavaVersion.current().isJava10Compatible) "html" else "javadoc"
outputDirectory = "$buildDir/javadoc"
}

val githubToken: String? by project
val ghActualToken = githubToken ?: System.getenv("GITHUB_TOKEN")
if (ghActualToken != null) {

0 comments on commit a592440

Please sign in to comment.