From 1875780dbe9cefd13b92dd77fe94bfee41083775 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 13 Nov 2022 00:34:19 +0100 Subject: [PATCH] Ported: Update the clean task configuration Running `gradlew clean` will now properly delete the generated build artifacts - m4gr3d https://github.com/godotengine/godot/commit/71c76a4ff23a606f805112c86a873cf338cf4468 --- platform/android/java/build.gradle | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/platform/android/java/build.gradle b/platform/android/java/build.gradle index 342e77d95..8b5e2b86c 100644 --- a/platform/android/java/build.gradle +++ b/platform/android/java/build.gradle @@ -267,6 +267,11 @@ task generatePandemoniumTemplates { finalizedBy 'zipCustomBuild' } +task clean(type: Delete) { + dependsOn 'cleanPandemoniumEditor' + dependsOn 'cleanPandemoniumTemplates' +} + /** * Generates the same output as generatePandemoniumTemplates but with dev symbols */ @@ -296,8 +301,6 @@ task cleanPandemoniumEditor(type: Delete) { // Delete the Pandemonium editor apks in the Pandemonium bin directory delete("$binDir/android_editor.apk") delete("$binDir/android_editor_dev.apk") - - finalizedBy getTasksByName("clean", true) } /** @@ -324,6 +327,4 @@ task cleanPandemoniumTemplates(type: Delete) { delete("$binDir/pandemonium-lib.debug.aar") delete("$binDir/pandemonium-lib.dev.aar") delete("$binDir/pandemonium-lib.release.aar") - - finalizedBy getTasksByName("clean", true) }