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") } + +