update dokka

This commit is contained in:
InsanusMokrassar 2020-12-07 14:08:59 +06:00
parent 9d8cb20d10
commit 92d902c027

View File

@ -1,12 +1,18 @@
dokkaHtml { dokkaHtml {
String dokkaOutputDirectoryPath = null
switch (true) { switch (true) {
case project.hasProperty("DOKKA_PATH"): case project.hasProperty("DOKKA_PATH"):
outputDirectory = project.property("DOKKA_PATH").toString() dokkaOutputDirectoryPath = project.property("DOKKA_PATH").toString()
break break
case System.getenv("DOKKA_PATH") != null: case System.getenv("DOKKA_PATH") != null:
outputDirectory = System.getenv("DOKKA_PATH") dokkaOutputDirectoryPath = System.getenv("DOKKA_PATH")
break break
} }
if (dokkaOutputDirectoryPath != null) {
File outputDirectoryFile = new File(dokkaOutputDirectoryPath)
outputDirectoryFile.mkdirs()
outputDirectory = outputDirectoryFile
}
dokkaSourceSets { dokkaSourceSets {
configureEach { configureEach {