-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle.kts
45 lines (39 loc) · 1.37 KB
/
build.gradle.kts
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
import java.net.URI
plugins {
kotlin("jvm") version "1.9.23"
id("org.jetbrains.dokka") version "1.9.20"
}
group = "dev.akif"
repositories {
mavenCentral()
}
layout.buildDirectory = file("target")
dependencies {
implementation(kotlin("stdlib"))
testImplementation("org.junit.jupiter", "junit-jupiter", "5.10.2")
}
tasks.dokkaJavadoc.configure {
outputDirectory.set(layout.buildDirectory.dir("target/api")) // SBT will look into here while doing `packageDoc`
dokkaSourceSets {
named("main") {
configureEach {
apiVersion.set(version.toString())
includeNonPublic.set(true)
reportUndocumented.set(true)
failOnWarning.set(false)
sourceLink {
localDirectory.set(file("src/main/kotlin"))
remoteUrl.set(
URI.create("https://github.com/makiftutuncu/e/blob/master/e-kotlin/src/main/kotlin").toURL()
)
remoteLineSuffix.set("#L")
}
jdkVersion.set(8)
externalDocumentationLink {
url.set(URI.create("https://javadoc.io/doc/dev.akif/e-kotlin/").toURL())
packageListUrl.set(URI.create("https://javadoc.io/doc/dev.akif/e-kotlin/").toURL())
}
}
}
}
}