mirror of
https://github.com/InsanusMokrassar/krontab.git
synced 2024-10-31 21:43:55 +00:00
46 lines
1.3 KiB
Groovy
46 lines
1.3 KiB
Groovy
dokkaHtml {
|
|
String dokkaOutputDirectoryPath = null
|
|
switch (true) {
|
|
case project.hasProperty("DOKKA_PATH"):
|
|
dokkaOutputDirectoryPath = project.property("DOKKA_PATH").toString()
|
|
break
|
|
case System.getenv("DOKKA_PATH") != null:
|
|
dokkaOutputDirectoryPath = System.getenv("DOKKA_PATH")
|
|
break
|
|
}
|
|
if (dokkaOutputDirectoryPath != null) {
|
|
File outputDirectoryFile = new File(dokkaOutputDirectoryPath)
|
|
outputDirectoryFile.mkdirs()
|
|
outputDirectory = outputDirectoryFile
|
|
}
|
|
|
|
moduleName.set("kdocs")
|
|
|
|
dokkaSourceSets {
|
|
configureEach {
|
|
skipDeprecated.set(true)
|
|
includeNonPublic.set(true)
|
|
reportUndocumented.set(true)
|
|
|
|
sourceLink {
|
|
localDirectory.set(file("./"))
|
|
remoteUrl.set(new URL("https://github.com/InsanusMokrassar/krontab/blob/master/"))
|
|
remoteLineSuffix.set("#L")
|
|
}
|
|
}
|
|
|
|
named("commonMain") {
|
|
sourceRoot { path = "src/commonMain" }
|
|
}
|
|
|
|
//
|
|
// named("jsMain") {
|
|
// sourceRoot { path = "src/jsMain" }
|
|
// }
|
|
//
|
|
// named("jvmMain") {
|
|
// sourceRoot { path = "src/jvmMain" }
|
|
// }
|
|
}
|
|
}
|