Skip to content

Commit

Permalink
⬆️ Update Dokka
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoColman committed May 24, 2022
1 parent 74a1d54 commit ea795ab
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
kotlin("jvm") version "1.6.20"
`maven-publish`
signing
id("org.jetbrains.dokka") version "0.10.1"
id("org.jetbrains.dokka") version "1.6.21"
id("io.gitlab.arturbosch.detekt") version "1.20.0"
}

Expand Down Expand Up @@ -35,12 +35,9 @@ val sourcesJar by tasks.registering(Jar::class) {
}

val javadocJar by tasks.registering(Jar::class) {
val javadoc = tasks["dokka"] as DokkaTask
javadoc.outputFormat = "javadoc"
javadoc.outputDirectory = "$buildDir/javadoc"
dependsOn(javadoc)
dependsOn("dokkaHtml")
archiveClassifier.set("javadoc")
from(javadoc.outputDirectory)
from("$buildDir/dokka")
}

publishing {
Expand Down

0 comments on commit ea795ab

Please sign in to comment.