I have a very large project, with many sub-projects configured in Gradle. When I do a clean build from the command line, it takes about 10 minutes, but after that, building the whole project is very fast.
My problem is when importing the project into IntelliJ Community Edition. When importing for the first time, it takes about 10 minutes, but after that, whenever I do a refresh on the project, it still takes the same amount of time.
I see the background task being executed: I see messages being displayed very quickly, and then it's stock at Gradle: Build
, and I have no idea what it's doing!
I tried to increase log level, and I see a DEBUG
message saying that: .project.GradleProjectResolver - Gradle data obtained in 311943 ms
, which I think is the reason it takes a lot of time, but as I said, I have no idea what it's doing that needs this amount of time
BTW, I'm using the gradle wrapper (not sure if it makes a difference)
Any help is appreciated, Thanks in advance