Skip to content

Repository files navigation

lib2813

Gradle Java Documentation core version

The Prospect Robotics SWENext Club welcomes you to lib2813.

Using the libraries

Updating your dependencies

In your project's "gradle" directory, create a file named libs.versions.toml with the following content:

[versions]
lib2813 = "2.0.0"

[libraries]
lib2813-core = { module = "com.team2813.lib2813:core", version.ref="lib2813" }
lib2813-vendor-ctre = { module = "com.team2813.lib2813:vendor-ctre", version.ref="lib2813" }
lib2813-vendor-rev = { module = "com.team2813.lib2813:vendor-rev", version.ref="lib2813" }
lib2813-vision = { module = "com.team2813.lib2813:vision", version.ref="lib2813" }
lib2813-limelight = { module = "com.team2813.lib2813:limelight", version.ref="lib2813" }
lib2813-testing = { module = "com.team2813.lib2813:testing", version.ref="lib2813" }

In your build.gradle, update the dependencies section:

dependencies {
    // Existing dependencies here
    
    // Lib2813 dependencies
    implementation libs.lib2813.core
    implementation libs.lib2813.vendor.ctre
    implementation libs.lib2813.vendor.rev
    implementation libs.lib2813.vision
    implementation libs.lib2813.limelight
    testImplementation libs.lib2813.testing
}

Note: You do not need to include all the dependencies. For example, if you don't use REV Robotics hardware (i.e. you don't have REVLib.json in your vendordeps directory) then you do not need to add libs.lib2813.vendor.rev to your dependencies.

Upgrading

To upgrade the version of the lib2813 libraries you are using, simply update the version string for "lib2813" in libs.versions.toml.

Vendordeps

  • com.team2813.lib2813:core:
    • WPILibNewCommands.json
  • com.team2813.lib2813:vendor-ctre:
    • Phoenix6.json
  • com.team2813.lib2813:vendor-rev:
    • REVLib.json
  • com.team2813.lib2813:limelight:
    • Phoenix6.json
  • com.team2813.lib2813:vision:
    • photonlib.json
  • com.team2813.lib2813:testing:
    • WPILibNewCommands.json

About

Libraries containing frequently-reused code extracted from past robot code

Resources

Contributing

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages