1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-12-22 16:47:13 +00:00

update docs build gradle to be able to put dokka where it is required

This commit is contained in:
InsanusMokrassar 2020-06-03 15:39:54 +06:00
parent 7375894645
commit 310a7e6e82

View File

@ -67,7 +67,18 @@ String dokkaFolder = "$buildDir/dokka"
dokka {
outputFormat = 'html'
outputDirectory = dokkaFolder
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
default:
outputDirectory = dokkaFolder
break
}
multiplatform {
global {