From 92d902c027ba12f1719badb0a7b6523b5e06563a Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Mon, 7 Dec 2020 14:08:59 +0600 Subject: [PATCH] update dokka --- dokka.gradle | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dokka.gradle b/dokka.gradle index dea94a8..ff983c8 100644 --- a/dokka.gradle +++ b/dokka.gradle @@ -1,12 +1,18 @@ dokkaHtml { + String dokkaOutputDirectoryPath = null switch (true) { case project.hasProperty("DOKKA_PATH"): - outputDirectory = project.property("DOKKA_PATH").toString() + dokkaOutputDirectoryPath = project.property("DOKKA_PATH").toString() break case System.getenv("DOKKA_PATH") != null: - outputDirectory = System.getenv("DOKKA_PATH") + dokkaOutputDirectoryPath = System.getenv("DOKKA_PATH") break } + if (dokkaOutputDirectoryPath != null) { + File outputDirectoryFile = new File(dokkaOutputDirectoryPath) + outputDirectoryFile.mkdirs() + outputDirectory = outputDirectoryFile + } dokkaSourceSets { configureEach {