简体   繁体   中英

Changing Grails SDK in IntelliJ IDEA Doesn't Work on Plugin Modules

IDEA 11.1.2

I have a Grails app I need to upgrade. The application consists of several modules. One being the application and a few others being plugins. I right clicked on the application and went to Grails -> Change SDK Version. I chose the version I wanted, then IDEA asked me if I wanted to upgrade the application. Clicked yes and all was good.

I've been trying to do the same thing on the plugin modules. IDEA never asks if I want to upgrade and it doesn't appear to change the SDK. If I upgrade the modules from the command line, when I come back to IDEA, it thinks there is a version mismatch and automatically downgrades me without even asking.

Is there a workaround for this?

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

app.grails.version=2.1.0

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

Have exactly same problem - app + plugins wich requires different SDK (for testing).

After some investigation found that it's an IntelliJ IDEA bug IDEA-114418 . So, I think, it will be good if you'll vote for this bug there too.

I also had the same bug. I took extreme measures to rectify it.

I deleted the old grails from the Global Libraries. Go to file>Project Structure > Global Libraries . It should complain that this is used by a module.

Then I had to add grails framework support, but added the new one.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM