Changing Grails SDK in IntelliJ IDEA does not work with plugin modules

IDEA 11.1.2

I have a Grails application that needs to be updated. The application consists of several modules. One of them is an application, and some others are plugins. I immediately clicked on the application and went to Grails -> Change SDK version. I selected the version I wanted, and then IDEA asked me if I want to update the application. Click Yes and everything was fine.

I am trying to do the same in plugin modules. IDEA never asks if I want to upgrade, and it will not change the SDK. If I update the modules from the command line when I return to IDEA, he will think that there is a version mismatch and automatically lowers me without even asking.

Is there a workaround for this?

+5
source share
3 answers

This worked for me in this version of IDEA. Make sure you change the version of Grails in the application.properties of all the plugins:

app.grails.version=2.1.0

Then right click on each module (plugin), Grails, Change SDK version. It should be changed already.

+4
source

Having exactly the same problem is app + plugins, which requires a different SDK (for testing).

After some research, it turned out that this is an IntelliJ IDEA IDEA-114418 error . So, I think it would be nice if you vote for this mistake too.

+3
source

. .

. file>Project Structure > Global Libraries. , .

Grails, .

+1
source

All Articles