Fix createArchive task.
Fix createArchive task.

After ag/2232393 the uploadTask was no longer deleting maven-metadata.xml
due to me incorrectly setting up when to run it.

Bug: 38177084
Test: ./gradlew createArchive, verify that maven-metadata.xml is in fact not there.
Change-Id: I849dc45241b9378e9590cdcf2baacfd2fbae3717

AndroidX/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,aosp-mirror/platform_frameworks_support,androidx/androidx,AndroidX/androidx,AndroidX/androidx,aosp-mirror/platform_frameworks_support,AndroidX/androidx,androidx/androidx,androidx/androidx,aosp-mirror/platform_frameworks_support,androidx/androidx,aosp-mirror/platform_frameworks_support,androidx/androidx,androidx/androidx,AndroidX/androidx,AndroidX/androidx,AndroidX/androidx,androidx/androidx,aosp-mirror/platform_frameworks_support,androidx/androidx