aboutsummaryrefslogtreecommitdiff
path: root/examples/gradle/dokka-versioning-multimodule-example/parentProject/build.gradle.kts
diff options
context:
space:
mode:
authorVadim Mishenev <vad-mishenev@yandex.ru>2022-08-22 21:39:20 +0300
committerGitHub <noreply@github.com>2022-08-22 21:39:20 +0300
commit661bf3d595e631a66a7141f6282ae90534b8a51e (patch)
treea5439b60c6b62db0898939cea44e0f606651a35f /examples/gradle/dokka-versioning-multimodule-example/parentProject/build.gradle.kts
parent50a3323322265ff3b5dab1d861a25bbb1167812a (diff)
downloaddokka-661bf3d595e631a66a7141f6282ae90534b8a51e.tar.gz
dokka-661bf3d595e631a66a7141f6282ae90534b8a51e.tar.bz2
dokka-661bf3d595e631a66a7141f6282ae90534b8a51e.zip
Fix path in versioning example on Windows (#2632)
Diffstat (limited to 'examples/gradle/dokka-versioning-multimodule-example/parentProject/build.gradle.kts')
-rw-r--r--examples/gradle/dokka-versioning-multimodule-example/parentProject/build.gradle.kts4
1 files changed, 2 insertions, 2 deletions
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<DokkaMultiModuleTask>("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<DokkaMultiModuleTask>("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}" }"""))
}