generated from infinum/android-library-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdokka.gradle
More file actions
41 lines (36 loc) · 1.53 KB
/
dokka.gradle
File metadata and controls
41 lines (36 loc) · 1.53 KB
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
apply plugin: "org.jetbrains.dokka"
afterEvaluate {
tasks.matching { task ->
task.name.startsWith("dokka")
}.configureEach { dokkaTask ->
if (dokkaTask.hasProperty("moduleName")) {
dokkaTask.moduleName.set(project.name)
}
if (dokkaTask.hasProperty("dokkaSourceSets")) {
dokkaTask.dokkaSourceSets.configureEach { sourceSet ->
sourceSet.includeNonPublic.set(false)
sourceSet.skipDeprecated.set(true)
sourceSet.reportUndocumented.set(true)
sourceSet.skipEmptyPackages.set(true)
sourceSet.jdkVersion.set(17)
sourceSet.noStdlibLink.set(false)
sourceSet.noJdkLink.set(false)
sourceSet.noAndroidSdkLink.set(false)
if (file("src/main/java").exists()) {
sourceSet.sourceLink {
it.localDirectory.set(file("src/main/java"))
it.remoteUrl.set(uri("https://github.com/infinum/android-buggy/"))
it.remoteLineSuffix.set("#L")
}
}
if (file("src/main/kotlin").exists()) {
sourceSet.sourceLink {
it.localDirectory.set(file("src/main/kotlin"))
it.remoteUrl.set(uri("https://github.com/infinum/android-buggy/"))
it.remoteLineSuffix.set("#L")
}
}
}
}
}
}