aboutsummaryrefslogtreecommitdiff
path: root/dokka-integration-tests/gradle/projects/it-basic-groovy/build.gradle
blob: 4017bec032da64c30bd373073e5188c2f717e0d3 (plain)
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
53
54
plugins {
    id 'org.jetbrains.kotlin.jvm'
    id("org.jetbrains.dokka")
}

apply from: '../template.root.gradle.kts'

dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib"
}

dokkaHtml {
    outputDirectory = new File(buildDir, "/dokka/customHtml")
    failOnWarning = false
    dokkaSourceSets {
        customSourceSet {
            sourceRoot(file("src/main/java"))
            sourceRoot(file("src/main/kotlin"))
            displayName.set("custom")
            reportUndocumented.set(true)
        }

        configureEach {
            perPackageOption { // testing closures
                matchingRegex.set(".*internal.*")
                suppress.set(true)
            }

            sourceLink { // testing closures
                localDirectory.set(file("src/main"))
                remoteUrl.set(
                        new URL(
                                "https://github.com/Kotlin/dokka/tree/master/" +
                                        "dokka-integration-tests/gradle/projects/it-basic-groovy/src/main"
                        )
                )
            }
        }
    }

}

dokkaJavadoc {
    outputDirectory = new File(buildDir, "dokka/customJavadoc")
}

dokkaGfm {
    outputDirectory = new File(buildDir, "dokka/customGfm")
}

dokkaJekyll {
    outputDirectory = new File(buildDir, "dokka/customJekyll")
}