From 707c047b0bb9c3858182d46c55a0c67bd38993d3 Mon Sep 17 00:00:00 2001 From: Marc Philipp Date: Sun, 23 Jul 2023 15:25:05 +0200 Subject: [PATCH] Fix createCurrentDocsFolder task --- documentation/documentation.gradle.kts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/documentation/documentation.gradle.kts b/documentation/documentation.gradle.kts index 4cc640563170..fd4877cdd6fc 100644 --- a/documentation/documentation.gradle.kts +++ b/documentation/documentation.gradle.kts @@ -447,11 +447,10 @@ tasks { val createCurrentDocsFolder by registering(Copy::class) { dependsOn(prepareDocsForUploadToGhPages) - outputs.dir("$docsDir/current") onlyIf { replaceCurrentDocs } - from("$docsDir/$docsVersion") - into("$docsDir/current") + from(docsDir.map { it.dir(docsVersion.toString()) }) + into(docsDir.map { it.dir("current") }) } val configureGitAuthor by registering {