Using Apache Commons

I’m trying to use the apache commons math library in our robot code. Is it possible to install it as a vendordep in vscode? If so how would I do this?

Just add this line to the dependencies block inside your build.gradle:

compile "org.apache.commons:commons-math3:3.6.1"
1 Like

Do you also have to add the files to the project or will just adding that line work?

No. You should rarely need to manually add any files or jars to a java project. Just make sure you are connected to the internet and run a build when you add that line.

1 Like

You should use implementation instead of compile. compile is the deprecated version.

3 Likes