I'm new with Git submodules.
I have the following structure in my project:
src/main/com/feature1
src/main/com/feature2
src/main/com/feature3
src/main/com/commonFeature
I have the same structure for the tests, but under the following package:
src/test/com/feature1 ...
As the package "commonFeature" is something that I want to reuse for other projects, I would like to create a Git submodule for it. I'm thinking about the following options to reorganize my packages structure:
src/main/com/commonFeature/main/
src/main/com/commonFeature/test/
or
src/commonFeature/main
src/commonFeature/test
Then I would keep my other packages project as before under:
src/main/com/feature1 ....
What would be the best way?