New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Very poor performance with Gradle build #13095
Comments
I suspect that this may be due to the dependency management plugin creating and resolving a detached configuration to apply Maven-style exclusions to you build. You said on the Gradle issue that it "takes ages" said in the title that performance is "very poor". Can you please quantify ages and very poor? It's impossible to diagnose a performance problem with subjective descriptions of the time that's taken.
Yes please.
A sample project that reproduces the problem would be very useful. |
Here is the build scan - https://scans.gradle.com/s/odpmjdnsiw3em
I suspect small sample project will be faster, but I will try to create it |
Thanks. Unfortunately, the scan doesn't tell us that much. For example, information about how many dependencies each project in your build has and what those dependencies are would be useful. Of the total dependency resolution time, resolving detached configurations takes 152.216 seconds. That's slightly less than half of the 318.718s total time. Both seem high, but, again, it's impossible to know if it is high without more information. Are all of the dependencies cached? Or is this including time to download dependencies? To test my theory about the time being spent applying Maven-style exclusions, you could try disabling them. You may then have to add some additional exclusions to your projects' dependencies as Gradle doesn't handle exclusions in a pom as Maven intends them to be handled. |
with
(this includes dowload time of tomcat-annotations-api.jar which was not needed before somehow) removing that line and again:
(all dependencies are cached, no "download" message) |
That's useful info, thanks. I don't understand the drop from 5m 11 to 1m 18 given that the detached configurations were, apparently, only responsible for 2m 32. Perhaps it's a quirk of how the build scan measures the time taken. If you don't want to disable Maven exclusion handling and would like to pursue the possibility of making this faster, please open an issue against the dependency management plugin providing a sample that reproduces the problem. |
I did start the discussion in Gradle issue tracker and we think a problem is in Spring Boot Gradle plugin. I can share build scans and anything else to find the root of the problem
The text was updated successfully, but these errors were encountered: