Cannot build official Gradle repo

I am using the latest Intellij 15 CE version:

After cloning the official Gradle repo and running gradlew idea, I still get this error:

Running via command line, here is the error I see:

FAILURE: Build failed with an exception.

* Where:
Script '/<>/gradle/noDependencyResolutionDuringConfiguration.gradle' line: 10

* What went wrong:
Failed to notify dependency resolution listener.
> Configuration userGuideStyleSheets of project docs is being resolved at configuration time.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.


Total time: 5.166 secs

Is there any thing I missing?

From what I understand running:

git clone
cd gradle
./gradlew idea

will result in the error you describe (without opening IntelliJ). Is that correct?

The screenshot looks like a “New Project” dialog. You’ll want to “Open Project” and point to your /gradle/ source folder.

If you’re still having problems, could you please provide detailed steps so we can reproduce this? Right now I’m not able to do so.


@eriwen The picture I posted says: “Import Project from Gradle” at the top. If you go “File” -> “Open” -> “build.gradle”, it will say the same thing.

It turns out I have gradle 2.12 installed via homebrew and did not run with gradlew(like I should be) which the project was using 2.13-rc-1. After running gradlew idea it seems to work fine.

It turns out that my local had org.gradle.configureondemand=true turned on. I simply commented it out and it works fine. Take caution with the “incubating mode”.

# Run gradle as a daemon

# Specifies the JVM arguments - Default value: -Xmx10248m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

# Enables incubating mode
# org.gradle.configureondemand=true

# Parallel builds
# org.gradle.parallel=true

# Disables pre-Dex of builds on first build

My mistake about the dialog.

Thank you for the additional details. We’ll get this fixed before we take configure on demand out of incubation.