mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 08:13:47 +00:00
update docs build gradle to be able to put dokka where it is required
This commit is contained in:
parent
7375894645
commit
310a7e6e82
@ -67,7 +67,18 @@ String dokkaFolder = "$buildDir/dokka"
|
|||||||
|
|
||||||
dokka {
|
dokka {
|
||||||
outputFormat = 'html'
|
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 {
|
multiplatform {
|
||||||
global {
|
global {
|
||||||
|
Loading…
Reference in New Issue
Block a user