Can anyone explain why gralde builds take so long? I do not mean startup time that can be tolerated or worked around with “daemon” setting.
For example, the project I am working on now contains 15 java files so simple recompilation in Eclipse takes about 2 seconds.
But gradle builds same project for more than 70 seconds every time. In my case “gradle -profile” says:
Total Build Time 1:10.713, Configuration 2.034 Startup 0.599 Settings and BuildSrc 0.393 Loading Projects 0.095 Configuring Projects 2.111 Total Task Execution 1:07.288
Task Execution : 1:07.288 (total) :compileJava 39.808 UP-TO-DATE :war 27.172 UP-TO-DATE :deployToJetty 0.291
:processResources 0.017 UP-TO-DATE :classes 0.000 UP-TO-DATE
(:deployToJetty is custom task with simple file copy)
Even more puzzling is that even java sources were not changed it still takes 40 seconds to tell that they are up-to date. Summing that up, it looks to me that at least in this case build time is about 10 times longer than it should be.
So the questions are 1. can I speed up build process? 2. If Gradle in fact does a lot more than it appears on the surface (maybe it thoroughly analyzes dependencies while checking java sources or whatever), are there any plans to speed that up?
update: In case that matters, I use: Gradle 1.0-milestone-3 Gradle build time: Thursday, September 8, 2011 4:06:52 PM UTC Groovy: 1.7.10 Ant: Apache Ant™ version 1.8.2 compiled on August 19 2011 Ivy: non official version JVM: 1.6.0_23 (Sun Microsystems Inc. 20.0-b11) OS: Linux 3.0.0-12-generic i386