Skip to content
Eric D'Urso edited this page Dec 9, 2021 · 2 revisions

Set Up & Getting Started

What is This?

This is the common codebase for FRC team 862's robots.

Javadocs for this project can be found here.

Installation & Dependencies

To use this project in a WPILib command-based robot project, walk through the following steps.

  1. Make sure the project has all the necessary files in vendordeps/ as seen here.

  2. You must also set up the following dependency repository in your build.gradle.

repositories {
    maven {
        name = "GitHubPackages"
        url = "https://maven.pkg.github.com/frc-862/lightning"
        credentials {
            username = project.findProperty("gpr.user")
            password = project.findProperty("gpr.key")
        }
    }
}
  1. You should set your ~/.gradle/gradle.properties (Unix) or %HOMEPATH%\.gradle\gradle.properties (Windows) file to contain your username as well as a GitHub Personal Access Token.
    See this article for creating a PAT.
gpr.user=<your-username>
gpr.key=<your-personal-access-token>

Note that you do not need to be a member of the @frc-862 organization to have access to this project.

  1. Add the library as a dependency as shown below
dependencies {
    implementation 'com.lightningrobotics:common:<version>'
}

The latest version of this repository (for <version> above) is Latest Version.