The official 2017 robot code! Uses the Gradle buildsystem. :P
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.
gradlew build
will build your Robot Codegradlew 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!
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!