File tree 2 files changed +11
-12
lines changed
build-logic/src/main/kotlin
2 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 1
1
plugins {
2
2
`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
+ }
4
11
}
5
12
6
13
java {
7
14
withSourcesJar()
8
15
withJavadocJar()
9
16
}
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
- }
Original file line number Diff line number Diff line change @@ -23,3 +23,6 @@ org.gradle.caching=true
23
23
# The release process of ktlint breaks whenever the configuration cache is enabled as not all gradle tasks fully supports this feature yet.
24
24
# As the configuration cache only slightly improves the build performance, it is kept disabled for now.
25
25
org.gradle.configuration-cache =false
26
+
27
+ # Enable helpers for migration to Dokka V2
28
+ org.jetbrains.dokka.experimental.gradle.pluginMode =V2EnabledWithHelpers
You can’t perform that action at this time.
0 commit comments