Setting up Intellij support¶
Download and install IntelliJ.
Download the GradleRIO zip file and extract it into to your project directory.
latest-versionto the latest plugin version specified here. For example:
id "jaci.openrio.gradle.GradleRIO" version "2017.1.1"
In frc, set team to 852 and set robotClass to the class that Robot is in.
In robotManifest, change 'Robot-Class' to the value you set for frc. For example:
1 2 3 4
Open a command line window and go to the project directory.
gradlew ideaon Windows or
./gradlew ideaon Linux/OSX.
Open the .ipr file with IntelliJ.
A pop-up will appear about an unlinked gradle project. Link the gradle project with the task-oriented option (second option down).
In the project there should be a /src/main/java folder. Create a package inside called
org.usfirst.frc.team852.robot. Add your
Robotclass and add this to the top:
In IntelliJ, go to view > Tool Windows > Terminal.
Commands are run through the command line or through gradle integration (TODO: cover this).
They are run with
gradlew [args] on Windows or
./gradlew [args] on OSX/Linux.
Some useful commands:
gradlew build: Build the project locally and prepare it for deployment.
gradlew build deploy: Build and deploy the project to the robot.
gradlew build deploy --offline: Build and deploy the project without checking and dowloading remote repositories. Useful for competition scenarios or when offline.