add gradle generatedSourceDirs module to main module
已回答
I have the following in my build.gradle:
idea {
module {
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?
请先登录再写评论。
When importing a project, there is an option to create separate modules for source sets, try to disable it.