Slow "Loading" phase on gradle 1.9 w/ JDK 1.7.0_25

The loading phase (at start when it outputs “> Loading”) takes nearly 10 seconds. The full build takes 11 seconds. All I’m building is a single file Main.java with a main with a System.out.println(), no dependencies whatsoever. My build.gradle file only contains “apply plugin: ‘java’”.

Would you mind trying with 1.0-rc-1? It has more output (by default) during this phase so we can more easily see what’s taking the time.

Just ran with RC1. This phase takes most of the time > Configuring > 0/1 projects > root project

The build now takes 8seconds (for an ALL UP-TO-DATE project)

This will have to be a combination of OS and JDK.

What OS are you on?

Are all Gradle projects slow for you?

CentOS 6.5

It’s the first project I run on that machine. We don’t have any other gradle project, it’s for evaluation.

If you happen to be running CentOS on Virtualbox, take a look at this thread. I had a similar issue in the past and it ended up being my VM setup.

http://forums.gradle.org/gradle/topics/is_gradle_slower_on_linux

Specifically this comment: http://forums.gradle.org/gradle/topics/is_gradle_slower_on_linux#reply_10989680

If you are not running on Virtualbox, then it is unrelated to that thread.