It's all about the answers!

Ask a question

Correct way to add to source control a nested Gradle Project

Rafael Hernandez (3222233) | asked Aug 01 '16, 7:17 p.m.
Hi everybody

We are having some troubles trying to add to source control multi-project gradle projects.

They are nested in a father project that contains inside all the children:


When we try to add these projects to source control the change-set is assembled ok, but when we try to download it we have a trouble, if we select the parent project, only downloads the parent project, and if we try to load the child project we have a conflict trying to do it.

Any idea of the best way to add to source control this projects?

Thanks in advance
Rafael H.

Accepted answer

permanent link
Ralph Schoon (62.3k33643) | answered Aug 02 '16, 3:39 a.m.
Eclipse does not support nested projects. You can share the top level project as Eclipse project. You can ignore all the .project files and load the folders as projects. This is the same issue that Maven creates, ignoring the limitations with Eclipse projects.
Rafael Hernandez selected this answer as the correct answer

Rafael Hernandez commented Sep 08 '16, 12:12 p.m.

 Hello Ralph thaks for the help, i resolved it, i had to convert gradle project to Flat, now the project structure is:

 --Credit-Core (Contains all the top level builds)

Your answer

Register or to post your answer.