From 661bf3d595e631a66a7141f6282ae90534b8a51e Mon Sep 17 00:00:00 2001 From: Vadim Mishenev Date: Mon, 22 Aug 2022 21:39:20 +0300 Subject: Fix path in versioning example on Windows (#2632) --- .../parentProject/build.gradle.kts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/gradle/dokka-versioning-multimodule-example') diff --git a/examples/gradle/dokka-versioning-multimodule-example/parentProject/build.gradle.kts b/examples/gradle/dokka-versioning-multimodule-example/parentProject/build.gradle.kts index 9bc8c991..afbc6675 100644 --- a/examples/gradle/dokka-versioning-multimodule-example/parentProject/build.gradle.kts +++ b/examples/gradle/dokka-versioning-multimodule-example/parentProject/build.gradle.kts @@ -13,7 +13,7 @@ val generatePreviouslyDocTask by tasks.register("dokkaPrev dokkaPlugin("org.jetbrains.dokka:versioning-plugin:1.7.10") } val configuredVersion = "0.9" - outputDirectory.set(file(projectDir.toPath().resolve(olderVersionsFolder).resolve(configuredVersion))) + outputDirectory.set(file(projectDir.resolve(olderVersionsFolder).resolve(configuredVersion))) pluginsMapConfiguration.set(mapOf("org.jetbrains.dokka.versioning.VersioningPlugin" to """{ "version": "$configuredVersion" }""")) addChildTasks(listOf(project("childProjectA"), project("childProjectB")), "dokkaHtmlPartial") } @@ -21,5 +21,5 @@ val generatePreviouslyDocTask by tasks.register("dokkaPrev tasks.dokkaHtmlMultiModule { dependsOn(generatePreviouslyDocTask) val configuredVersion = "1.0" - pluginsMapConfiguration.set(mapOf("org.jetbrains.dokka.versioning.VersioningPlugin" to """{ "version": "$configuredVersion", "olderVersionsDir": "$projectDir/$olderVersionsFolder" }""")) + pluginsMapConfiguration.set(mapOf("org.jetbrains.dokka.versioning.VersioningPlugin" to """{ "version": "$configuredVersion", "olderVersionsDir": "${projectDir.resolve(olderVersionsFolder).invariantSeparatorsPath}" }""")) } -- cgit