-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.gradle.kts
41 lines (37 loc) · 1.44 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
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.compose.compiler) 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.kotlinx.serialization) apply false
alias(libs.plugins.poko) apply false
alias(libs.plugins.publish) apply false
alias(libs.plugins.dokka)
alias(libs.plugins.dependencies)
alias(libs.plugins.binaryCompatibility)
}
apiValidation {
nonPublicMarkers += "dev.jordond.compass.InternalCompassApi"
ignoredProjects += "composeApp"
}
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))
}
}
}