Rob Winch (Migrated from SEC-2018) said:
Due to quite a few users encountering GRADLE-2034 it is probably better to remove the reference to mavenLocal() from the build. This will slow builds that have a maven cache the first time they build with gradle since all dependencies will need to be downloaded. However, this will only happen once and it ensures that they do not have any build issues.
Rob Winch said:
There are two ways to work around the issue:
1) Delete or rename your local maven repository (i.e. ~/.m2/repository/)
2) Remove the mavenLocal() from the build.gradle as was done to resolve this issue. You can see the details in this diff