Updates Gradle wrapper and exclude duplicate files to fix the build.