Building GRIP from Source in Eclipse - PatrickPenguinTurtle/GRIPWiki GitHub Wiki

DISCLAIMER

This page was created by rlee287 as a community project. These instructions need to be verified.

This guide assumes you have Eclipse and Git already installed

Getting the Gradle plugin for Eclipse

This is the link to the Gradle plugin on Eclipse Marketplace:

https://marketplace.eclipse.org/content/gradle-integration-eclipse-0

Choose a link on the left and copy it onto the clipboard. In Eclipse, select Help > Install New Software...

When downloading with the links on the left, select only "Gradle IDE", as shown below.

Gradle IDE selection

After it finishies installing, create a new workspace in Eclipse seperate from your cloned copy of the GRIP source code.

Importing the GRIP Gradle Project

Go to File > Import... and choose Gradle > Gradle Project. Enter the folder in which you cloned the GRIP source and click Build Model. After it completes, select all the projects to import them. A screenshot is shown below:

Import

Running GRIP

Ignore all the errors listed under "Problems" that will appear the first time. Right click the GRIP project and select Run as > Gradle Build... with the ellipsis after it. In the dialog box that appears, type in :ui:run and build the project, as shown below:

Running

During the build process, it will need to download dependencies, so you will need an active internet connection to build GRIP. After the build completes, the GRIP window should appear.

To build an executable that does not need internet, use :ui:installDist. Afterwards, navigate to ui/build/install/ui/bin and run the script in the folder. It can be helpful to run this inside a terminal to see error messages in case something happens.