Has anybody managed to setup the Gradle project itself in IDEA to be able to compile it, invoke it on some project and debug from within the IDE and so on? I am using the ‘idea’ task from Gradle and I can open the project in IDEA but it doesn’t build for multiple reasons (cycle in module deps, some import errors even though the imported classes are there, some Groovy stubs problems, and so on). How do you hack Gradle internals? The way I’ve been doing it (because of the above) was to change gradle, compile a class or two, replace it in my distribution and do remote debugging - this is not really manageable for obvious reasons. I am using IDEA 12.1.4, the latest stable.