From 5fb43239428d5a12e79cd3871baee360b1cc242f Mon Sep 17 00:00:00 2001 From: WhiredPlanck Date: Sun, 12 Jan 2025 13:36:39 +0800 Subject: [PATCH] build: always overwrite files when install OpenCC data --- build-logic/convention/src/main/kotlin/OpenCCDataPlugin.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-logic/convention/src/main/kotlin/OpenCCDataPlugin.kt b/build-logic/convention/src/main/kotlin/OpenCCDataPlugin.kt index 8b37f46a27..e99092775b 100644 --- a/build-logic/convention/src/main/kotlin/OpenCCDataPlugin.kt +++ b/build-logic/convention/src/main/kotlin/OpenCCDataPlugin.kt @@ -87,12 +87,12 @@ class OpenCCDataPlugin : Plugin { input.run { resolve("config") .listFiles { f -> f.extension == "json" } - ?.forEach { f -> f.copyTo(output.resolve(f.name)) } + ?.forEach { f -> f.copyTo(output.resolve(f.name), overwrite = true) } val dictionary = resolve("dictionary") for (raw in DICTS_RAW) { val basename = "$raw.txt" - dictionary.resolve(basename).copyTo(output.resolve(basename)) + dictionary.resolve(basename).copyTo(output.resolve(basename), overwrite = true) } val merge = resolve("scripts/merge.py").absolutePath