Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 1.49 KB

README.md

File metadata and controls

36 lines (23 loc) · 1.49 KB

2017

The official 2017 robot code! Uses the Gradle buildsystem. :P

Cloning and editing the project

This project uses GradleRIO, the Gradle-based FRC toolchain. You can read more about GradleRIO here.

To clone the project, first clone it into your working directory with git clone or the GitHub Desktop app.

Then generate the project files for your IDE:

  • gradlew idea (IntelliJ IDEA)
  • gradlew eclipse (Eclipse)

IntelliJ IDEA has native support for Gradle. Eclipse users should install the Buildship Gradle plugin for Eclipse, as the plugin does NOT come with the C++ distribution!

Eclipse users should also DISABLE WPILib if they have it installed.

Building and deploying your code

  • gradlew build will build your Robot Code
  • gradlew deploy will deploy your built code to the RoboRIO These tasks must be run in succession.

In addition, Gradle tasks may fail without an internet connection. You can rectify this with the --offline flag.

If you're lazy, just use this command: gradlew build deploy --offline

These tasks are also listed in the Gradle window in IntelliJ IDEA, or the Gradle Tasks window in Eclipse. You can even create run configurations to launch these tasks!

Pushing to GitHub

To push your updates to GitHub, simply use git push or the Github Desktop app.

Make sure that the project files generated by your IDE are not being tracked by Git!