I am trying to optimize our project in Intellij. We have a huge code base that is split into modules. Within each module we have submodules for the test classes. So the structure looks like
So the question I have is since we have submodules, In intellij we add them as top level modules. However I am unsure if Intellij is smart enough while indexing to realise that the submodules under test dont need to be indexed twice and whether it knows to exclude the target under the test?
I have tried to exclude the test folder from the parent module but this causes intellij to add the module outside the project on its own. Do we need to do this to prevent the test modules target from being indexed?
Thanks in advance!