Last year’s GradleRIO had the nice ctre() method that imported ctre libraries. I understand that that is not the case this year and you have to do it through installing vendor libraries in VS Code. Currently, I do not have VS Code installed right now and would like to do this completely through gradle if possible.
Right now I just have all the jars in a “libs” folder and import it through gradle but I would obviously want to be able to check for updates without going through a hassle.
create a vendordeps folder in your project directory. Then in C:\Users\Public\frc2019\vendordeps you’ll see a Phoenix.json file. Add that to your vendordeps folder, refresh gradle, and you’re good to go
To expand on this, once you create the vendordeps folder in your project directory, you can download the vendor JSON directly from CTRE and put it in that folder. They publish theirs here:
But we strongly recommend option 1 (installer). Offline install is meant to guarantee your PC will never need internet to compile your code. I’d hate for your PC to stop building at a competition because something goofy happened to the gradle build system in your project. Or even worst, you have to create a project from scratch in a pinch, but you have no internet.
Theoretically that shouldn’t happen if the VsCode extensions are solid, but we’ve been bit by this during beta - hence the caution.