IntelliJ - auto-setup groovy sdk in idea plugin?

Every time I run “gradle idea” I have to manually setup the groovy SDK for each module. Is there a way to auto-configure?

Which IDEA version are you using? Recent IDEA versions (at least 11 and 12, possibly also earlier versions) automatically pick the Groovy version that they find on the compile class path, and it isn’t necessary to configure anything.


how I set up my question isn’t correct, sorry. Modules are fine, it’s gradle files that aren’t in modules that cause the message: “groovy sdk is not configured”.

Any suggestion on handling that?

Until IDEA’s Gradle plugin handles this, I think that the only solution is to to put the Groovy library on the (IDEA) class path of every project that has a Gradle build script. Of course this may not be desirable for other reasons.