From 8cdeee30d08b80e9b4792eaf2677f471103a7743 Mon Sep 17 00:00:00 2001 From: Wook Song Date: Thu, 2 May 2024 16:59:51 +0900 Subject: [PATCH] Externals/Gradle: Add a Gradle task for cleaning all of the generated This patch adds a Gradle task that cleans all of the generated directories and files. Signed-off-by: Wook Song --- externals/build.gradle.kts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/externals/build.gradle.kts b/externals/build.gradle.kts index f2b58a1..e7761a9 100644 --- a/externals/build.gradle.kts +++ b/externals/build.gradle.kts @@ -161,9 +161,22 @@ tasks { args = listOf("git checkout .") // The git command arguments dependsOn("updateGitSubmodules") } + + register("cleanAll", Delete::class) { + delete(downloadablePath) + for (downloadble in downloadables) { + val (_, targetDir, _) = downloadble + + delete(projectDir.toPath().resolve(targetDir)) + } + + dependsOn("clean") + } } tasks.named("build") { dependsOn("copyFromTar") dependsOn("checkoutGitSubmodules") } + +