include ":living_lib", ":living_webapi", ":living_authz", ":living_dsl", ":living_community"
I’ve imported these projects using base location of infrastructure. So, the other projects have been imported in Eclipse.
Each time I click on Gradle -> Refresh Project it:
Add a infrastructure project in eclipse, creating a infrastructure folder inside base infrastructure folder (infrastructure/infrastructure).
Sometimes it tells me that its not able to nest source folders: Cannot nest 'living_webapi/src/main/java/com/living/persistence/entities' inside 'living_webapi/src/main/java'. To enable the nesting exclude 'com/' from 'living_webapi/src/main/java']
Sometimes it’s telling me that: A project with the name infrastructure already exists.
Without a sample project I can only guess, but the cannot nest... kind of exception happens when your project defines multiple source folders where one contains the other (like src and src/main/java).
Regarding the already exists exception, it might be that when you - unsuccessfully - try to import the project, the root project gets created and you have to delete it manually before retrying. If you use working sets to categorize projects in Eclipse, then this root project can be hidden by default.
I’ve just realized each srcDir specified on those configurations are added as source folders in eaclipse project as well.
Is there some way to exclude them?
In my eclipse classpath configuration I’ve already set I want to exclude them using minusConfigurations, however, gradle is adding these srcDirs as source folders: