upgrading to 2019.1 version broke all my projects.

已回答

I was using 2018.3. I upgraded to 2019.1. Now all my grails projects are broken. Its has lost the config for gradle and also grails.

In the event log window, it says "unlinked gradle project? ....". If I click on "import gradle project", I get a dialog, but I really dont know which of the various options I should chose. E.g.

"create separate modle per source set"?  should this be ticked or not? 

"use default wrapper" says recommended, but it is not ticked.Surely if its recommended it should be ticked?

"user auto-import". This is not ticked. Should it be ticked?

How would one know which of these options must be ticked or not?

It doesnt show anything for "Gradle home", but I have GRADLE_HOME set (pointing to gradle 5.1.1).  

 

I tried submitting this dialog with various random settings, but it always results in it only importing my app module, not my exploded services and domain modules, which were working before the upgrade.

 

1

Is it Grails3/Grails4 project? Does it have only one build.gradle file?

>it only importing my app module, not my exploded services and domain modules, which were working before the upgrade.

How do you organize those modules? Are they not linked via the build.gradle file to the main project?

Try re-import project as a Gradle project via File | New | Project from existing sources action: https://www.jetbrains.com/help/idea/gradle.html#gradle_import

>"create separate modle per source set"?  should this be ticked or not? 

Yes it is recommended to use this option.

>"user auto-import". This is not ticked. Should it be ticked?

When enabled it will trigger auto-import of configuration fro build.gradle automatically after yo change it.

>"use default wrapper" says recommended, but it is not ticked.Surely if its recommended it should be ticked?

See import project settings page for reference on the options.

If issue remains please provide a sample project. For uploading you can use ftp://ftp.intellij.net/.uploads / https://uploads.services.jetbrains.com or any file sharing service.

0

请先登录再写评论。