File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import com.yandex.yatagan.gradle.isValidSemVerString
2- import org.jetbrains.dokka.gradle.DokkaTask
32
43plugins {
54 id(" yatagan.base-module" )
65 id(" org.jetbrains.dokka" )
6+ id(" org.jetbrains.dokka-javadoc" )
77 `maven- publish`
88 signing
99}
@@ -41,14 +41,13 @@ java {
4141
4242val artifactName = path.trim(' :' ).replace(' :' , ' -' )
4343
44- tasks.withType< DokkaTask >().configureEach {
44+ dokka {
4545 moduleName.set(artifactName)
4646}
4747
4848val javadocJar by tasks.creating(Jar ::class ) {
4949 archiveClassifier.set(" javadoc" )
50- from(tasks.dokkaJavadoc.map { it.outputDirectory })
51- dependsOn(tasks.dokkaJavadoc)
50+ from(tasks.dokkaGeneratePublicationJavadoc.map { it.outputDirectory })
5251}
5352
5453artifacts {
@@ -142,4 +141,4 @@ rootProject.tasks {
142141 mustRunAfter(rootPublish)
143142 }
144143 }
145- }
144+ }
Original file line number Diff line number Diff line change @@ -5,3 +5,6 @@ org.gradle.jvmargs=-Xmx2G
55org.gradle.configureondemand =true
66org.gradle.parallel =true
77org.gradle.configuration-cache =true
8+
9+ org.jetbrains.dokka.experimental.gradle.pluginMode =V2Enabled
10+ org.jetbrains.dokka.experimental.gradle.pluginMode.noWarn =true
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ kotlin = "1.9.24"
55# Must be in sync with 'kotlin'. Asserted in buildscript
66ksp = " 1.9.24-1.0.20"
77# Must be compatible with 'kotlin'
8- dokka = " 1.9.20 "
8+ dokka = " 2.0.0 "
99
1010dagger = " 2.51.1"
1111
You can’t perform that action at this time.
0 commit comments