Skip to content

Commit 0cfec2c

Browse files
afrencalgAndras
andauthored
(chore): Upgrade dokka (#422)
* (chore): Upgrade dokka * Update build.gradle.kts --------- Co-authored-by: Andras <[email protected]>
1 parent f2a224d commit 0cfec2c

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ plugins {
99
alias(libs.plugins.spotless) apply false
1010
alias(libs.plugins.kotlin.android) apply false
1111
alias(libs.plugins.compose.compiler) apply false
12+
alias(libs.plugins.dokka) apply false
1213
}
1314

1415
subprojects {

extensions/android-paging3/build.gradle.kts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ plugins {
22
id("com.android.library")
33
id("kotlin-android")
44
id("com.vanniktech.maven.publish")
5+
alias(libs.plugins.dokka)
56
}
67

78
android {
@@ -35,6 +36,18 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach
3536
}
3637
}
3738

39+
tasks.withType<org.jetbrains.dokka.gradle.tasks.DokkaGenerateTask>().configureEach {
40+
if (name == "dokkaGeneratePublicationHtml") {
41+
outputDirectory.set(layout.buildDirectory.dir("intermediates/javadoc/release"))
42+
}
43+
}
44+
45+
tasks.matching { it.name == "javaDocReleaseGeneration" }.configureEach {
46+
dependsOn("dokkaGeneratePublicationHtml")
47+
// Avoid AGP embedded Dokka (ASM9 issue).
48+
actions.clear()
49+
}
50+
3851
dependencies {
3952
api(project(":instantsearch"))
4053
api(libs.androidx.paging3)

gradle/libs.versions.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,4 @@ android = { id = "com.android.library", version = "8.7.2" }
6161
maven-publish = { id = "com.vanniktech.maven.publish", version = "0.34.0" }
6262
spotless = { id = "com.diffplug.gradle.spotless", version = "6.16.0" }
6363
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
64+
dokka = { id = "org.jetbrains.dokka", version = "2.1.0" }

0 commit comments

Comments
 (0)