From 2c49a88df4cca836ecabb7d48d73da443990935b Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Mon, 23 Sep 2019 14:07:56 -0700 Subject: [PATCH] Workaroud Dokka issue on Windows --- build.gradle.kts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index abaa619..29ce1e6 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -145,8 +145,14 @@ tasks { jdkVersion = 8 linkMapping { - dir = "src/main/kotlin" - url = "https://github.com/ethauvin/${project.name}/blob/master/src/main/kotlin" + // See https://github.com/Kotlin/dokka/issues/289 + val f = if (System.getProperty("os.name").contains("windows", true)) { + file("${projectDir}/src/main/kotlin").toURI().toString().replace("file:", "") + } else { + "src/main/kotlin" + } + dir = f + url = "https://github.com/ethauvin/${project.name}/tree/master/src/main/kotlin" suffix = "#L" }