dev-guide:developer-guide
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| dev-guide:developer-guide [2024/04/11 17:41] – created gaetan | dev-guide:developer-guide [2024/06/25 11:19] (current) – [Cloning the repository] gaetan | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Welcome to this developer guide! | + | ===== Develop GroIMP in Eclipse ===== |
| + | |||
| + | This guide is written to give new GroIMP developers an overview about how the required development environment is prepared and installed. | ||
| This guide starts with the installation of Eclipse and ends with a merge request for the own code changes. | This guide starts with the installation of Eclipse and ends with a merge request for the own code changes. | ||
| Line 6: | Line 8: | ||
| - Installing **Eclipse**. This can be skipped if it is already installed. | - Installing **Eclipse**. This can be skipped if it is already installed. | ||
| - | - (Optional) **Forking** the official repository to an own one. This is done to be able to commit and push changes. | ||
| - | - (Optional) **Mirroring** the fork repository to the official one. This merges updates of the official repository to the fork repository automatically. | ||
| - **Cloning** the fork repository to the local computer (in Eclipse) | - **Cloning** the fork repository to the local computer (in Eclipse) | ||
| - Adjusting the **compiler** and **Java version** | - Adjusting the **compiler** and **Java version** | ||
| Line 67: | Line 67: | ||
| - | ==== (Optional) Forking | + | ==== Cloning |
| - | Go to [[https:// | + | It is possible (and recommended) |
| - | Click on the //Fork// button of the repository. | + | === From Eclipse egit === |
| - | Select your own gitlab namespace and optionally an other project name (not recommended). | + | **Warning: This method sometime lead to error in the code compilation. It is not recommended |
| - | Change or reuse the project slug and description. | + | The git repository can be imported in Eclipse using the eclipse plugin eGit, which is embedded by default in all Eclipse installations. |
| - | Click on //Fork project// | + | Click on File > Import… |
| - | + | ||
| - | ==== (Optional) Mirroring the repository ==== | + | |
| - | + | ||
| - | In an internet browser, go to your own repository that forks the official one. | + | |
| - | + | ||
| - | On the side bar, click on // | + | |
| - | + | ||
| - | Expand the category `Mirroring repositories`. | + | |
| - | + | ||
| - | Insert the URL of the official repository: [[https:// | + | |
| - | + | ||
| - | Click on //Mirror repository// | + | |
| - | + | ||
| - | **Note: the two previous steps are optionals for users, but highly recommended if you plan on contributing to the code.** | + | |
| - | + | ||
| - | ==== Cloning the repository ==== | + | |
| - | + | ||
| - | === In Eclipse === | + | |
| - | + | ||
| - | Click on //File// > //Import...// | + | |
| Open the category `Git` | Open the category `Git` | ||
| - | Select | + | Select Projects from Git |
| - | + | ||
| - | Click on //Next > // | + | |
| Select `Clone URI` | Select `Clone URI` | ||
| - | Click //Next > // | + | Insert `git@gitlab.com: |
| - | + | ||
| - | Insert `git@gitlab.com: | + | |
| - | forked repository | + | |
| - | + | ||
| - | The other fields are automatically set. | + | |
| - | + | ||
| - | Click on //Next > // | + | |
| - | + | ||
| - | The key information is shown now. | + | |
| - | + | ||
| - | Select the checkbox `Accept and store this key, and continue connecting? | + | |
| - | + | ||
| - | Click on // | + | |
| - | + | ||
| - | Now, the branch selection window appears. | + | |
| - | + | ||
| - | All branches should be selected. | + | |
| - | + | ||
| - | Click on //Next > // | + | |
| - | + | ||
| - | Set the local path to the repository. It should be in your user directory in the subdirectory `/ | + | |
| - | + | ||
| - | Click on //Next > // | + | |
| - | + | ||
| - | This may take much time since the repository is very large (800 MB). | + | |
| - | + | ||
| - | In the resulting window, click //Next > // | + | |
| - | + | ||
| - | In the next window, all subprojects must be selected. | + | |
| - | + | ||
| - | Click on // | + | |
| - | + | ||
| - | Wait until it has been built. | + | |
| - | + | ||
| - | The repository is imported as a long list of projects. | + | |
| - | + | ||
| - | The repository is imported in Ecplise and you can go to setting Eclipse up. | + | |
| - | + | ||
| - | === From GitLab === | + | |
| - | + | ||
| - | This method do not require any Gitlab account. | + | |
| - | + | ||
| - | It is possible to simply download the directory of source code from GitLab on the main page [[https:// | + | |
| - | + | ||
| - | You can then download the whole repository as any archive format you like. | + | |
| - | + | ||
| - | Once it is downloaded, extract the archive to the directory where you want to setup your eclipse workspace. | + | |
| - | + | ||
| - | You still need to import the repository in Eclipse. See two section bellow. | + | |
| - | + | ||
| - | === From a bash command === | + | |
| - | + | ||
| - | You can clone a repository from GitLab with the command line: | + | |
| - | + | ||
| - | < | + | |
| - | git clone https:// | + | |
| - | </ | + | |
| - | + | ||
| - | This will create a directory named groimp and download all the remote content in it. | + | |
| - | You still need to import the repository in Eclipse. See the section bellow. | ||
| - | === Import the repository in Eclipse === | + | ==== Import the repository in Eclipse |
| You have the repository with GroIMP source code on your local device. | You have the repository with GroIMP source code on your local device. | ||
| Line 185: | Line 103: | ||
| Click on `Finish`. | Click on `Finish`. | ||
| - | |||
| ==== Setting up Java Runtime Environment ==== | ==== Setting up Java Runtime Environment ==== | ||
dev-guide/developer-guide.1712850082.txt.gz · Last modified: 2024/04/11 17:41 by gaetan
