I'm using IntelliJ IDEA Pro 13.1.2. Never used any versions below 13.
When trying to run build.gradle
from IDE I get the message:
Module is not backed by gradle
I can run this script from the command line just fine.
The "root" directory has both .gradle
and gradle
sub-directories and, in general its structure is very similar to another module from the same project where I can run its build from IDE without problems.
Any suggestions on further troubleshooting?
If you didn't set up the IDE project via "Import Project" and then pointing to a Gradle project, you may have to link the IDE project to the Gradle project. This can be done in the "Gradle" window.
Tools > Grails > Change SDK Version
I fixed this problem by clicking in the Menu
With the new created run configuration it worked. I hope this will help some of you.
For a non-gradle project, you can also remove the module from the project and re-import it. This will help avoid the message "module is not backed by gradle".