Add IntelliJ IDEA runConfigurations. The "module" is set to a path variable "$grailsAppModuleName$". Set the value in IDEA settings not in runConfigurations dialogue.