mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-19 00:41:41 +00:00
This PR updates everything for 2027. This includes removing GradleRIO, simplifying our wpilib version defintion, updating APIs, updating to Java 21, and more. Note that photonlibpy is failing because robotpy has not been fully updated yet. Examples are omitted because they need to be updated for our new PhotonPoseEstimator API and still need some changes from WPILIB. photonlib windows build is failing because we're waiting for some upstream changes. Finally, images are failing since they don't have Java 21 yet.
31 lines
1005 B
Groovy
31 lines
1005 B
Groovy
import org.gradle.internal.os.OperatingSystem
|
|
|
|
pluginManagement {
|
|
repositories {
|
|
mavenLocal()
|
|
gradlePluginPortal()
|
|
String frcYear = '2027_alpha4'
|
|
File frcHome
|
|
if (OperatingSystem.current().isWindows()) {
|
|
String publicFolder = System.getenv('PUBLIC')
|
|
if (publicFolder == null) {
|
|
publicFolder = "C:\\Users\\Public"
|
|
}
|
|
def homeRoot = new File(publicFolder, "wpilib")
|
|
frcHome = new File(homeRoot, frcYear)
|
|
} else {
|
|
def userFolder = System.getProperty("user.home")
|
|
def homeRoot = new File(userFolder, "wpilib")
|
|
frcHome = new File(homeRoot, frcYear)
|
|
}
|
|
def frcHomeMaven = new File(frcHome, 'maven')
|
|
maven {
|
|
name = 'frcHome'
|
|
url = frcHomeMaven
|
|
}
|
|
}
|
|
}
|
|
|
|
Properties props = System.getProperties();
|
|
props.setProperty("org.gradle.internal.native.headers.unresolved.dependencies.ignore", "true");
|