KSLog/dokka.gradle

26 lines
691 B
Groovy
Raw Normal View History

2022-06-07 17:12:55 +00:00
Object callback = {
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
}
dokkaSourceSets {
configureEach {
skipDeprecated.set(true)
sourceLink {
localDirectory.set(file("./"))
remoteUrl.set(new URL("https://github.com/InsanusMokrassar/KSLog/blob/master/"))
remoteLineSuffix.set("#L")
}
}
}
}
tasks.dokkaGfm(callback)
tasks.dokkaHtml(callback)