-
Notifications
You must be signed in to change notification settings - Fork 50
/
dokka.gradle
43 lines (34 loc) · 1.01 KB
/
dokka.gradle
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
// SPDX-License-Identifier: MIT OR Apache-2.0
import static java.nio.file.Files.*
import static java.nio.file.Paths.get
import static java.util.stream.Collectors.toSet
dokka {
outputFormat = 'gfm'
outputDirectory = 'docs'
moduleName = ''
sourceDirs = files(
"${rootDir}/staging",
"${project(":libui").projectDir}/src/nativeMain/kotlin"
)
def buildDirPath = get("${project(":libui").buildDir}/classes/kotlin")
if (exists(buildDirPath)) {
def cinteropBuildDirs = find(buildDirPath, 16) {
path, attributes -> path.endsWith("libui-cinterop-libui.klib-build")
}.map({ it.toString() }).collect(toSet())
sourceDirs += files(cinteropBuildDirs)
}
reportUndocumented = false
noStdlibLink = true
packageOptions {
prefix = "kotlin"
suppress = true
}
packageOptions {
prefix = "kotlinx"
suppress = true
}
packageOptions {
prefix = "platform"
suppress = true
}
}