krontab/dokka.gradle

38 lines
992 B
Groovy
Raw Normal View History

2020-12-05 19:40:29 +00:00
dokkaHtml {
2020-06-03 14:10:06 +00:00
switch (true) {
case project.hasProperty("DOKKA_PATH"):
outputDirectory = project.property("DOKKA_PATH").toString()
break
case System.getenv("DOKKA_PATH") != null:
outputDirectory = System.getenv("DOKKA_PATH")
break
}
2020-12-05 19:40:29 +00:00
dokkaSourceSets {
configureEach {
skipDeprecated.set(true)
includeNonPublic.set(true)
reportUndocumented.set(true)
2020-06-03 14:10:06 +00:00
sourceLink {
2020-12-05 19:40:29 +00:00
localDirectory.set(file("./"))
remoteUrl.set(new URL("https://github.com/InsanusMokrassar/krontab/blob/master/"))
remoteLineSuffix.set("#L")
2020-06-03 14:10:06 +00:00
}
}
2020-12-05 19:40:29 +00:00
named("commonMain") {
2020-06-03 15:07:10 +00:00
sourceRoot { path = "src/commonMain" }
}
2020-12-05 19:40:29 +00:00
//
// named("jsMain") {
// sourceRoot { path = "src/jsMain" }
// }
//
// named("jvmMain") {
// sourceRoot { path = "src/jvmMain" }
// }
2020-06-03 14:10:06 +00:00
}
}