-
Notifications
You must be signed in to change notification settings - Fork 11
Installing the API
Josh edited this page Oct 14, 2019
·
4 revisions
To install the API, it can either be downloaded and copied directly into the project, or you can use it with Gradle/Maven.
The Maven repository is located at: https://nexus.otake.pw/repository/maven-public/ The group id is pw.otake.pseudoresonance and the artifact name is pixy2-java-api For FRC Gradle builds, this can be easily added by adding the following to build.gradle in the project's root.
Add maven { url 'https://nexus.otake.pw/repository/maven-public/' } under repositories
Add compile 'pw.otake.pseudoresonance:pixy2-java-api:1.3.4' under dependencies Replace 1.3.4 with the current version of the API, found on the releases page.
Your build.gradle should resemble this:
// Maven central needed for JUnit
repositories {
mavenCentral()
maven { url 'https://nexus.otake.pw/repository/maven-public/' }
}
// Defining my dependencies. In this case, WPILib (+ friends), and vendor libraries.
// Also defines JUnit 4.
dependencies {
compile 'pw.otake.pseudoresonance:pixy2-java-api:1.3.4'
compile wpi.deps.wpilib()
compile wpi.deps.vendor.java()
nativeZip wpi.deps.vendor.jni(wpi.platforms.roborio)
nativeDesktopZip wpi.deps.vendor.jni(wpi.platforms.desktop)
testCompile 'junit:junit:4.12'
}