Gradle delete does not work when type equals copy