-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle.kts
49 lines (44 loc) · 1.48 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
37
38
39
40
41
42
43
44
45
46
47
48
49
import org.jetbrains.dokka.gradle.AbstractDokkaTask
import org.jetbrains.dokka.gradle.DokkaMultiModuleTask
plugins {
alias(libs.plugins.multiplatform) apply false
alias(libs.plugins.compose) apply false
alias(libs.plugins.cocoapods) apply false
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.libres) apply false
alias(libs.plugins.poko) apply false
alias(libs.plugins.dokka)
alias(libs.plugins.dependencies)
alias(libs.plugins.binaryCompatibility)
alias(libs.plugins.kover)
}
apiValidation {
ignoredProjects.addAll(
listOf(
"test-utils",
"composeApp",
),
)
}
dependencies {
kover(project(":androidx-palette"))
}
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 { project ->
dependsOn(project.tasks.withType(taskClass))
}
}
}