With Gradle 5.0-rc1 I experience very long import times when using the gradle-intellij-plugin.
Profiling revealed that the problem is the method
ErrorHandlingModuleComponentRepository.tryResolveAndMaybeBlacklist that explicitly calls
Thread.sleep repeatedly before blacklisting the internal repository. This adds around 50 seconds to the Gradle import in my case. There was no such problem with Gradle 4.10.2. How can I further debug this situation?
My current workaround is to call
which reduces the sleep times to a couple of ms.