aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/base/src/main/kotlin/renderers/FileWriter.kt2
-rw-r--r--runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/base/src/main/kotlin/renderers/FileWriter.kt b/plugins/base/src/main/kotlin/renderers/FileWriter.kt
index fff16e48..236cbad8 100644
--- a/plugins/base/src/main/kotlin/renderers/FileWriter.kt
+++ b/plugins/base/src/main/kotlin/renderers/FileWriter.kt
@@ -11,7 +11,7 @@ import java.nio.file.*
class FileWriter(val context: DokkaContext): OutputWriter {
private val createdFiles: MutableSet<String> = mutableSetOf()
private val jarUriPrefix = "jar:file:"
- private val root = File(context.configuration.outputDir).absolutePath
+ private val root = context.configuration.outputDir
override suspend fun write(path: String, text: String, ext: String) {
if (createdFiles.contains(path)) {
diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt
index 4f7b88c4..fda1017a 100644
--- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt
+++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt
@@ -175,7 +175,7 @@ open class DokkaTask : DefaultTask() {
val defaultModulesConfiguration = collectConfigurations()
.map { defaultPassConfiguration(it, globalConfig) }
return GradleDokkaConfigurationImpl().apply {
- outputDir = outputDirectory
+ outputDir = project.file(outputDirectory).absolutePath
format = outputFormat
generateIndexPages = true
cacheRoot = cacheRoot