Fix buildSrc grouping in Gradle Tool Window

GitOrigin-RevId: e37917879164cb470c9eeadf4e16868a4d211862
This commit is contained in:
alexey.afanasiev
2019-10-02 13:33:13 +00:00
committed by intellij-monorepo-bot
parent 0b9c1c964f
commit d4b258f9c9
@@ -234,7 +234,7 @@ public class BaseGradleProjectResolverExtension implements GradleProjectResolver
final String gradlePath = gradleModule.getGradleProject().getPath();
final String rootName = gradleModule.getProject().getName();
if (isEmpty(gradlePath) || ":".equals(gradlePath)) {
return rootName.equals(moduleName) ? new String[]{moduleName} : new String[]{rootName, moduleName};
return new String[]{moduleName};
}
else {
return (rootName + gradlePath).split(":");