mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-19 00:41:41 +00:00
Remove C++ protobuf support until https://github.com/wpilibsuite/allwpilib/issues/7250 is addressed. Developers should upgrade to wpilib vscode 2025 beta 1. --------- Co-authored-by: Matt <matthew.morley.ca@gmail.com>
28 lines
854 B
Groovy
28 lines
854 B
Groovy
import org.gradle.internal.os.OperatingSystem
|
|
|
|
pluginManagement {
|
|
repositories {
|
|
mavenLocal()
|
|
gradlePluginPortal()
|
|
String frcYear = '2025'
|
|
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
|
|
}
|
|
}
|
|
}
|