aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormvicsokolova <82594708+mvicsokolova@users.noreply.github.com>2023-09-19 12:26:25 +0200
committerGitHub <noreply@github.com>2023-09-19 12:26:25 +0200
commit1f7825749889191fb531922a3c925e295aa0a9d1 (patch)
treef9322080429122f18c8ae50364fe46787941201c
parent6b97f4b963714a5d8c1f0f420ae61c8949b97358 (diff)
downloadkotlinx.atomicfu-1f7825749889191fb531922a3c925e295aa0a9d1.tar.gz
clean task can't delete the expanded.lock file on Windows (#350)
WA for: `clean` task can't delete the expanded.lock file on Windows as it's still held by Gradle See KT-58303
-rw-r--r--atomicfu/build.gradle6
1 files changed, 6 insertions, 0 deletions
diff --git a/atomicfu/build.gradle b/atomicfu/build.gradle
index 6115870..5e14f96 100644
--- a/atomicfu/build.gradle
+++ b/atomicfu/build.gradle
@@ -396,3 +396,9 @@ tasks.matching { it.name == "generatePomFileForKotlinMultiplatformPublication" }
dependsOn(tasks["generatePomFileForJvmPublication"])
}
+// Workaround for https://youtrack.jetbrains.com/issue/KT-58303:
+// the `clean` task can't delete the expanded.lock file on Windows as it's still held by Gradle, failing the build
+clean {
+ delete.add(fileTree(buildDir))
+ delete.remove("tmp/.cache/expanded/expanded.lock")
+}