-
Notifications
You must be signed in to change notification settings - Fork 107
Building GRIP from Source in Eclipse
NOTE: As discussed in issue #827, Eclipse's Gradle integration has broken. The below instructions are now defunct. Please use a different method to build GRIP (e.g. gradlew
, IntelliJ, etc.)
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
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.
After it finishies installing, create a new workspace in Eclipse seperate from your cloned copy of the GRIP source code.
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:
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:
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.