What exactly do I get by configuring the `idea` Gr...
# intellij
m
What exactly do I get by configuring the
idea
Gradle plugin with
generatedSourceDirs
compared to simply adding to the source set ?
Copy code
idea {
  module {
    // what does this do?
    generatedSourceDirs += file("generatedDir")
  }
}
What makes a "generated" directory special?
r
Perhaps in the past IntelliJ wasn’t as good at understanding the gradle model (or the gradle model wasn’t as explicit) and so you needed to tell it the directory of generated source dirs explicitly? Just a guess.
m
Yea maybe. If that's the case, it would be worth deprecating this
c
generated sources are part of the build but you cannot edit them.
i think its no longer necessary if you just delegate the build to gradle
m
I see
I can still edit them but I get a big warning
Generated source files should not be edited
Anyways, looks like I can live without, thanks for the answers!