mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-19 00:41:41 +00:00
## Description <!-- What changed? Why? (the code + comments should speak for itself on the "how") --> <!-- Fun screenshots or a cool video or something are super helpful as well. If this touches platform-specific behavior, this is where test evidence should be collected. --> <!-- Any issues this pull request closes or pull requests this supersedes should be linked with `Closes #issuenumber`. --> Bump to wpilib 2026 beta. This does not bump our pythonlib, as robotpy hasn't come out yet. ## Meta Merge checklist: - [ ] Pull Request title is [short, imperative summary](https://cbea.ms/git-commit/) of proposed changes - [ ] The description documents the _what_ and _why_ - [ ] This PR has been [linted](https://docs.photonvision.org/en/latest/docs/contributing/linting.html). - [ ] If this PR changes behavior or adds a feature, user documentation is updated - [ ] If this PR touches photon-serde, all messages have been regenerated and hashes have not changed unexpectedly - [ ] If this PR touches configuration, this is backwards compatible with settings back to v2025.3.2 - [ ] If this PR touches pipeline settings or anything related to data exchange, the frontend typing is updated - [ ] If this PR addresses a bug, a regression test for it is added --------- Co-authored-by: Gold856 <117957790+Gold856@users.noreply.github.com>
29 lines
872 B
Groovy
29 lines
872 B
Groovy
import org.gradle.internal.os.OperatingSystem
|
|
|
|
pluginManagement {
|
|
repositories {
|
|
mavenLocal()
|
|
jcenter()
|
|
gradlePluginPortal()
|
|
String frcYear = '2026'
|
|
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
|
|
}
|
|
}
|
|
}
|