I’m trying to make an offseason Java library to simplify some of the processes that are done during competition season, how can I integrate Wpilib into my project. More precisely i’m wondering how I can import things from wpilibj2
, I’ve figured out how I can add wpi.java.deps.wpilib()
as a dependency and wpi.java.vendor.java()
, but I still can’t import things like subsystems and commands from wpilib2
. For reference, here is my current build.gradle
file:
plugins {
id 'java'
id 'java-library'
id 'edu.wpi.first.GradleRIO' version '2023.2.1'
}
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
repositories {
mavenCentral()
}
dependencies {
implementation wpi.java.deps.wpilib()
implementation wpi.java.vendor.java()
}
It would also be helpful if someone could explain to me how I can import vendor dependencies from here, such as the CTRE or Photonlib vendor dependencies.
I’m new to using Gradle and Maven in general so any advice even unrelated to the topic would be helpful.