Skip to content

Commit e1bb380

Browse files
Complete upgrade Dokka to V2 (#2914)
Closes #2912
1 parent e2c50f0 commit e1bb380

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
plugins {
22
`java-library`
3-
id("org.jetbrains.dokka")
3+
// Generates Javadoc documentation
4+
id("org.jetbrains.dokka-javadoc")
5+
}
6+
7+
dokka {
8+
dokkaPublications.javadoc {
9+
outputDirectory.set(layout.buildDirectory.dir("javadoc"))
10+
}
411
}
512

613
java {
714
withSourcesJar()
815
withJavadocJar()
916
}
10-
11-
tasks.dokkaJavadoc {
12-
notCompatibleWithConfigurationCache("https://github.com/Kotlin/dokka/issues/1217")
13-
outputDirectory = layout.buildDirectory.dir("javadoc")
14-
}
15-
16-
tasks.named<Jar>("javadocJar") {
17-
dependsOn(tasks.dokkaJavadoc)
18-
archiveClassifier = "javadoc"
19-
from(tasks.dokkaJavadoc)
20-
}

gradle.properties

+3
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ org.gradle.caching=true
2323
# The release process of ktlint breaks whenever the configuration cache is enabled as not all gradle tasks fully supports this feature yet.
2424
# As the configuration cache only slightly improves the build performance, it is kept disabled for now.
2525
org.gradle.configuration-cache=false
26+
27+
# Enable helpers for migration to Dokka V2
28+
org.jetbrains.dokka.experimental.gradle.pluginMode=V2EnabledWithHelpers

0 commit comments

Comments
 (0)