GradleProjectSettings (String path) { GradleProjectSettings projectSettings = new GradleProjectSettings(); projectSettings.setExternalProjectPath(path); projectSettings.setDistributionType(DistributionType.DEFAULT_WRAPPED); GradleSettings.getInstance(myProject).linkProject(projectSettings); return projectSettings; }