It's all about the answers!

Ask a question

Correct way to add to source control a nested Gradle Project


Rafael Hernandez (3222434) | 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:

--Credit
 --Credit-Bussiness
 --Credit-Dao
 --Credit-Entity
 --Credit-Services

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 (63.3k33646) | answered Aug 02 '16, 3:39 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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

Comments
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)
 --Credit-Bussiness
 --Credit-Dao
 --Credit-Entity
 --Credit-Services

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.