IntelliJ IDEA and Gradle: Why there are 3 modules per sub-module?

前端 未结 2 726
梦毁少年i
梦毁少年i 2021-01-30 23:11

I am rather confused by IntelliJ IDEA\'s gradle integration and the mapping of gradle subprojects to IDEA\'s modules.

  • Why are there 3 modules for every gradle subp
2条回答
  •  情话喂你
    2021-01-31 00:02

    If you want to just disable this option for a previously imported project you can do so by editing idea gradle configuration file located in .idea/gradle.xml.

    Add this line that sets resolveModulePerSourceSet to false:

    
    
      ...
      
        
      
    
    

    And then refresh the gradle project.

提交回复
热议问题