Fix Gradle corrupting binary resources