Skip to content

Commit d131b2b

Browse files
committed
Fix Dokka publishing
1 parent b77abbe commit d131b2b

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
kotlin("jvm") version "1.7.0" apply false
3-
id("org.jetbrains.dokka") version "0.10.0" apply false
3+
id("org.jetbrains.dokka") version "1.7.0" apply false
44
id("com.gradle.plugin-publish") version "0.11.0" apply false
55
id("com.github.gmazzo.buildconfig") version "2.0.2" apply false
66
}

kotlin-power-assert-plugin-native/build.gradle.kts

+2-7
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@ tasks.withType<KotlinCompile> {
3333
kotlinOptions.jvmTarget = "1.8"
3434
}
3535

36-
tasks.dokka {
37-
outputFormat = "html"
38-
outputDirectory = "$buildDir/javadoc"
39-
}
40-
4136
tasks.register("sourcesJar", Jar::class) {
4237
group = "build"
4338
description = "Assembles Kotlin sources"
@@ -52,8 +47,8 @@ tasks.register("dokkaJar", Jar::class) {
5247
description = "Assembles Kotlin docs with Dokka"
5348

5449
archiveClassifier.set("javadoc")
55-
from(tasks.dokka)
56-
dependsOn(tasks.dokka)
50+
from(tasks.dokkaHtml)
51+
dependsOn(tasks.dokkaHtml)
5752
}
5853

5954
signing {

kotlin-power-assert-plugin/build.gradle.kts

+2-7
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ tasks.withType<Test> {
2828
useJUnitPlatform()
2929
}
3030

31-
tasks.dokka {
32-
outputFormat = "html"
33-
outputDirectory = "$buildDir/javadoc"
34-
}
35-
3631
tasks.register("sourcesJar", Jar::class) {
3732
group = "build"
3833
description = "Assembles Kotlin sources"
@@ -47,8 +42,8 @@ tasks.register("dokkaJar", Jar::class) {
4742
description = "Assembles Kotlin docs with Dokka"
4843

4944
archiveClassifier.set("javadoc")
50-
from(tasks.dokka)
51-
dependsOn(tasks.dokka)
45+
from(tasks.dokkaHtml)
46+
dependsOn(tasks.dokkaHtml)
5247
}
5348

5449
signing {

0 commit comments

Comments
 (0)