How can I copy a file from my Gradle build directory to the META-INF directory in my APK?

In my Gradle build I am generating a file in .build/main/resources that I would like to copy into the META-INF directory of the APK I’m building. How can I copy this file to META-INF?

For Java WAR files, the java plugin provides gradle tasks like “classes” and “processResources” to accomplish a similar objective. Does the gradle android plugin provide anything like this?

Tyler, did you ever find a solution to your problem?