This message was deleted.
# plugin-development
s
This message was deleted.
j
Or does such a concept not exist and IntelliJ just looks at all source folders and computes shared parent folders?
v
For sure not parent of all paths, because if you have something in
build/generated/...
IntelliJ does still mark the modules correctly.
But I think IntelliJ indeed just does some common-parents and name-matching logic to determine how to display it. If you for example have
Copy code
sourceSets.main {
    java.setSrcDirs(listOf(layout.buildDirectory.dir("bar"), layout.projectDirectory.dir("src/main_foo/java")))
    resources.setSrcDirs(listOf(layout.projectDirectory.dir("src/main_foo/resources")))
}
then you get content roots
.../build/bar
and
.../src/main_foo
with in the tree displayed as
main_foo [main]
and
bar [main]
.
So I don't think there is the concept of "module directory", just some IntelliJ display magic
👍 1
j
👍 Thanks for the answer and for checking @Vampire
👌 1