-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle.kts
36 lines (32 loc) · 1.21 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import org.jetbrains.dokka.gradle.AbstractDokkaTask
import org.jetbrains.dokka.gradle.DokkaMultiModuleTask
plugins {
alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.multiplatform) apply false
alias(libs.plugins.compose) apply false
alias(libs.plugins.compose.compiler) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.poko) apply false
alias(libs.plugins.dokka)
alias(libs.plugins.binaryCompatibility)
}
apiValidation {
ignoredProjects.addAll(
listOf("mcu-upstream"),
)
}
tasks.withType<DokkaMultiModuleTask>().configureEach {
outputDirectory.set(rootDir.resolve("dokka"))
}
allprojects {
// Workaround for https://github.com/Kotlin/dokka/issues/2977.
// We disable the C Interop IDE metadata task when generating documentation using Dokka.
tasks.withType<AbstractDokkaTask> {
@Suppress("UNCHECKED_CAST")
val taskClass = Class.forName("org.jetbrains.kotlin.gradle.targets.native.internal.CInteropMetadataDependencyTransformationTask") as Class<Task>
parent?.subprojects?.forEach {
dependsOn(it.tasks.withType(taskClass))
}
}
}