mirror of
https://github.com/InsanusMokrassar/krontab.git
synced 2025-02-16 19:52:13 +00:00
Update dokka.gradle
This commit is contained in:
parent
92ae81d7a7
commit
6d055739fe
45
dokka.gradle
45
dokka.gradle
@ -17,29 +17,38 @@ dokkaHtml {
|
|||||||
moduleName.set("kdocs")
|
moduleName.set("kdocs")
|
||||||
|
|
||||||
dokkaSourceSets {
|
dokkaSourceSets {
|
||||||
configureEach {
|
switch (true) {
|
||||||
skipDeprecated.set(true)
|
case project.hasProperty("DOKKA_PATH"):
|
||||||
includeNonPublic.set(true)
|
outputDirectory = project.property("DOKKA_PATH").toString()
|
||||||
reportUndocumented.set(true)
|
break
|
||||||
|
case System.getenv("DOKKA_PATH") != null:
|
||||||
|
outputDirectory = System.getenv("DOKKA_PATH")
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
sourceLink {
|
dokkaSourceSets {
|
||||||
localDirectory.set(file("./"))
|
configureEach {
|
||||||
remoteUrl.set(new URL("https://github.com/InsanusMokrassar/krontab/blob/master/"))
|
skipDeprecated.set(true)
|
||||||
remoteLineSuffix.set("#L")
|
|
||||||
|
sourceLink {
|
||||||
|
localDirectory.set(file("./"))
|
||||||
|
remoteUrl.set(new URL("https://github.com/InsanusMokrassar/krontab/blob/master/"))
|
||||||
|
remoteLineSuffix.set("#L")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
named("commonMain") {
|
named("commonMain") {
|
||||||
sourceRoot { path = "src/commonMain" }
|
sourceRoots.setFrom(findSourcesWithName("commonMain"))
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// named("jsMain") {
|
// named("jsMain") {
|
||||||
// sourceRoot { path = "src/jsMain" }
|
// sourceRoot { path = "src/jsMain" }
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
// named("jvmMain") {
|
// named("jvmMain") {
|
||||||
// sourceRoot { path = "src/jvmMain" }
|
// sourceRoot { path = "src/jvmMain" }
|
||||||
// }
|
// }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user