I upgraded the mac osx version to 10.12, before the upgrade, compile time consuming about 20ms. After the upgrade will be more than 3 minutes
7:58:44.476 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.memcache.InMemoryCachedRepositoryFactory] Creating new in-memory cache for repo ‘maven’ [bb7841ef7c131efb0be8fa8c0b3c21e7].
17:58:49.500 [DEBUG] [org.gradle.internal.resource.transport.http.HttpClientConfigurer] Using Credentials [username: admin] and NTLM Credentials [user: admin, domain: , workstation: ] for authenticating against ‘null:-1’ using NTLM
the ‘creating new in-memory’ always cost several seconds
Could you take a look at the problem described here? Some other projects have been seeing problems with slow localhost resolution on macOS Sierra. https://thoeni.io/post/macos-sierra-java/
Can you try adding your mac’s hostname (mbpro.local below, but this could be different for you) to /etc/hosts?