Skip to content

Commit f33c75d

Browse files
authored
Fix 'Duplicate content roots detected' IDE warning during Gradle import (#4149)
settings.gradle.kts was erroneously creating an extra project in the hierarchy, confusing the IDE. For example, 'plugins/toolkit' was creating: ':toolkit' and ':plugin-toolkit'
1 parent 29a635e commit f33c75d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

settings.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ plugins/
9393
file("plugins").listFiles()?.forEach root@ {
9494
if (!it.isDirectory) return@root
9595

96-
val name = it.name
97-
include(":$name")
98-
project(":$name").projectDir = it
96+
val pluginRoot = "plugin-${it.name}"
97+
include(":$pluginRoot")
98+
project(":$pluginRoot").projectDir = it
9999

100100
val path = ArrayDeque<String>()
101101
it.walk().maxDepth(2)

0 commit comments

Comments
 (0)