Running "gradle idea" fails on a clean checkout

Details

Description

This have been mentioned on the mailing list before. Steps to reproduce:
1) Perform a clean checkout of trunk
2) Issue "gradle idea"
3) The build fails with some error about "could not invoke minus on null"

A work around is to do "gradle build" before attempting to generate the idea project.

Chris Poulsen
added a comment - 27/Sep/11 09:05 I don't know much about gradle/groovy.
So I've just wrapped the offending line in a try/catch and default it to an empty set if an exception is thrown.
If the task is truly dependent on some generated folders being present I guess we should make sure that the build task is marked as a dependency of the idea task.