mirror of
https://github.com/InsanusMokrassar/krontab.git
synced 2024-11-22 16:23:55 +00:00
update dokka
This commit is contained in:
parent
9d8cb20d10
commit
92d902c027
10
dokka.gradle
10
dokka.gradle
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user