Gradle for color sensor V3

Is there a Gradle import I can use to get the Color Sensor V3 api?
I found this zip thing but it was maven

That is what gradle uses. You extract those folders to C:\Users\Public\wpilib\2020 and then run the Manage Vendor Libraries command in VS Code, selecting the Install New Libraries (Offline) option from the drop down.

https://docs.wpilib.org/en/latest/docs/software/wpilib-overview/3rd-party-libraries.html

Follow the Adding an Offline-Installed Library heading on that page for the VS Code steps, to be done after extracting those 2 files in the zip.

Ok thanks
I’m used to http imports that I plug into my dependencies section
which also makes it easier to switch between computers too

There’s a way to do it to where you put a JSON file in the vendordeps folder and it will work across computers. I myself have never used the offline installer, but I think the reason the WPI devs suggest it is because it’s more reliable?

You can also use this JSON file. Just put it in the vendordeps subdirector and it should work.

Ideally, I would just like to drop something like implementation 'abc:1.0.0' into my Gradle file, that’s my preference, but Thad_House’s comment worked

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.