IDEA-89416 Gradle: Correct jdk setup when new gradle project is linked

This commit is contained in:
Denis.Zhdanov
2012-07-30 16:30:02 +04:00
parent 686d050bd0
commit 5f0d4c92df
@@ -83,6 +83,7 @@ public class GradleModuleImporter {
// Ensure that the dependencies are clear (used to be not clear when manually removing the module and importing it via gradle)
ModuleRootManager moduleRootManager = ModuleRootManager.getInstance(created);
final ModifiableRootModel moduleRootModel = moduleRootManager.getModifiableModel();
moduleRootModel.inheritSdk();
RootPolicy<Object> visitor = new RootPolicy<Object>() {
@Override
public Object visitLibraryOrderEntry(LibraryOrderEntry libraryOrderEntry, Object value) {