I have the following in my build.gradle:
generatedSourceDirs += file('src/main/generated')
When syncing gradle with intelliJ, this causes 2 modules to be generated. myProject_generated and myProject_main. Is there a way to only create the myProject_main module with generatedSourceDirs as a source root? Or to include the myProject_generated module as a dependency in myProject_main?