diff options
author | Fredia Huya-Kouadio <fhuya@meta.com> | 2022-10-18 06:41:09 -0700 |
---|---|---|
committer | Fredia Huya-Kouadio <fhuya@meta.com> | 2022-10-18 20:36:40 -0700 |
commit | 20d1c882cde6fb1b3c73f62daae85e189c38d8c4 (patch) | |
tree | 1d1f73a76d40d70b05813a199c71e0f0f5771014 /platform | |
parent | 2e3662acbd8586697db38569785cc9f97dff945e (diff) |
Delete Android godot-lib with the old naming scheme
Update the `clean` task configuration: running `gradlew clean` will now properly delete the generated build artifacts
Diffstat (limited to 'platform')
-rw-r--r-- | platform/android/java/build.gradle | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/platform/android/java/build.gradle b/platform/android/java/build.gradle index 05608883d7..5a91e5ce32 100644 --- a/platform/android/java/build.gradle +++ b/platform/android/java/build.gradle @@ -276,6 +276,11 @@ task generateDevTemplate { finalizedBy 'zipCustomBuild' } +task clean(type: Delete) { + dependsOn 'cleanGodotEditor' + dependsOn 'cleanGodotTemplates' +} + /** * Clean the generated editor artifacts. */ @@ -292,8 +297,6 @@ task cleanGodotEditor(type: Delete) { // Delete the Godot editor apks in the Godot bin directory delete("$binDir/android_editor.apk") delete("$binDir/android_editor_dev.apk") - - finalizedBy getTasksByName("clean", true) } /** @@ -321,5 +324,8 @@ task cleanGodotTemplates(type: Delete) { delete("$binDir/godot-lib.template_debug.dev.aar") delete("$binDir/godot-lib.template_release.aar") - finalizedBy getTasksByName("clean", true) + // Cover deletion for the libs using the previous naming scheme + delete("$binDir/godot-lib.debug.aar") + delete("$binDir/godot-lib.dev.aar") + delete("$binDir/godot-lib.release.aar") } |