Skip to content

Commit

Permalink
Externals/Gradle: Add a Gradle task for cleaning all of the generated
Browse files Browse the repository at this point in the history
This patch adds a Gradle task that cleans all of the generated
directories and files.

Signed-off-by: Wook Song <[email protected]>
  • Loading branch information
wooksong committed May 2, 2024
1 parent 9a3d6dc commit a65fa46
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions externals/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}


0 comments on commit a65fa46

Please sign in to comment.