dokka.gradle

This commit is contained in:
InsanusMokrassar 2022-06-07 23:12:55 +06:00
parent db1feffbe0
commit 5e07bdbebf
2 changed files with 28 additions and 2 deletions

View File

@ -59,5 +59,6 @@ java {
apply from: "defaultAndroidSettings.gradle" apply from: "defaultAndroidSettings.gradle"
apply from: "./github_release.gradle" apply from: "github_release.gradle"
apply from: "./publish.gradle" apply from: "publish.gradle"
apply from: "dokka.gradle"

25
dokka.gradle Normal file
View File

@ -0,0 +1,25 @@
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)