gradle.kts importing: proper check for root project
This commit is contained in:
+1
-2
@@ -34,8 +34,7 @@ class KotlinDslScriptModelResolver : KotlinDslScriptModelResolverCommon() {
|
||||
ideProject: DataNode<ProjectData>
|
||||
) {
|
||||
root.projects.forEach {
|
||||
val gradleProject = it as? GradleProject
|
||||
if (gradleProject == null || gradleProject.parent == null) {
|
||||
if (it.projectIdentifier.projectPath == ":") {
|
||||
resolverCtx.models.getModel(it, KotlinDslScriptsModel::class.java)?.let { model ->
|
||||
processScriptModel(ideProject, model, it.projectIdentifier.projectPath)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user