blob: 0d09f96fe8de36f810bfe86342513963f89e3753 (
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
|
/*
* Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
import org.jetbrains.dokka.gradle.DokkaTask
import java.net.URL
plugins {
kotlin("jvm") version "1.9.0"
id("org.jetbrains.dokka") version "1.9.0"
}
repositories {
mavenCentral()
}
dependencies {
testImplementation(kotlin("test-junit"))
}
tasks.withType<DokkaTask>().configureEach {
dokkaSourceSets {
named("main") {
// used as project name in the header
moduleName.set("Dokka Gradle Example")
// contains descriptions for the module and the packages
includes.from("Module.md")
// adds source links that lead to this repository, allowing readers
// to easily find source code for inspected declarations
sourceLink {
localDirectory.set(file("src/main/kotlin"))
remoteUrl.set(URL("https://github.com/Kotlin/dokka/tree/master/" +
"examples/gradle/dokka-gradle-example/src/main/kotlin"
))
remoteLineSuffix.set("#L")
}
}
}
}
|