-
Notifications
You must be signed in to change notification settings - Fork 92
/
dokka.gradle
52 lines (41 loc) · 1.22 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
44
45
46
47
48
49
50
51
52
apply plugin: 'org.jetbrains.dokka'
tasks.dokkaJavadoc.configure {
def docs = new File("$rootDir/../javadoc/")
if (!docs.exists()) {
docs.mkdir()
println(docs.toString())
}
outputDirectory.set(docs)
def pkgToInclude = [
"com.unity3d.ads",
"com.unity3d.services",
]
def fileNamesToExclude = [
"R.java"
]
def filesToExclude = []
for (def fileName : fileNamesToExclude) {
filesToExclude << "src/main/java/com/unity3d/ads/$fileName"
}
dokkaSourceSets {
configureEach {
includeNonPublic.set(false)
skipEmptyPackages.set(true)
reportUndocumented.set(false)
jdkVersion.set(7)
// By default all packages are suppressed.
perPackageOption {
matchingRegex.set("com.unity3d.*")
suppress.set(true)
}
// Reverse suppression for packages to be included.
for (def pkg : pkgToInclude) {
perPackageOption {
matchingRegex.set(pkg)
suppress.set(false)
}
}
suppressedFiles.setFrom(files(filesToExclude))
}
}
}