Sorry, the original message is definitely mostly incomprehensible. Let me try again.
I have a Gradle project that is wrapping a legacy ant build. The project does not apply the java plugin, but it does apply java-base. I have manually created a sourceSet called main and added a bunch of srcDirs to it.
When I run ‘gradle eclipse’, Gradle generates a ‘.classpath’ file that contains all the srcDirs. When I run ‘gradle idea’, Gradle generates a module file that has no source dirs.
I think this is because the Idea plugin only applies ‘withType(JavaPlugin)’ whereas the Eclipse plugin uses ‘withType(JavaBasePlugin)’.
Is that intentional or could it be switched to match the Eclipse plugin?