Upgrade to 2027 alpha

This commit is contained in:
Gold856
2025-06-17 19:09:09 -04:00
committed by samfreund
parent 68bdb38a3d
commit ed1b31cb7f
28 changed files with 137 additions and 143 deletions

View File

@@ -1,7 +1,7 @@
plugins {
id "cpp"
id "google-test-test-suite"
id "edu.wpi.first.GradleRIO" version "2026.2.1"
id "edu.wpi.first.GradleRIO2027" version "2027.0.0-alpha-1"
}
repositories {
@@ -11,14 +11,13 @@ repositories {
wpi.maven.useLocal = false
wpi.maven.useDevelopment = false
wpi.versions.wpilibVersion = "2026.2.1"
wpi.versions.wpimathVersion = "2026.2.1"
wpi.versions.wpilibVersion = "2027.0.+"
// Define my targets (RoboRIO) and artifacts (deployable files)
// Define my targets (SystemCore) and artifacts (deployable files)
// This is added by GradleRIO's backing project DeployUtils.
deploy {
targets {
roborio(getTargetTypeClass('RoboRIO')) {
systemcore(getTargetTypeClass('SystemCore')) {
// Team number is loaded either from the .wpilib/wpilib_preferences.json
// or from command line. If not found an exception will be thrown.
// You can use getTeamOrDefault(team) instead of getTeamNumber if you
@@ -36,8 +35,8 @@ deploy {
// Static files artifact
frcStaticFileDeploy(getArtifactTypeClass('FileTreeArtifact')) {
files = project.fileTree('src/main/deploy')
directory = '/home/lvuser/deploy'
deleteOldFiles = false // Change to true to delete files on roboRIO that no
directory = '/home/systemcore/deploy'
deleteOldFiles = false // Change to true to delete files on SystemCore that no
// longer exist in deploy directory of this project
}
}
@@ -45,7 +44,7 @@ deploy {
}
}
def deployArtifact = deploy.targets.roborio.artifacts.frcCpp
def deployArtifact = deploy.targets.systemcore.artifacts.frcCpp
// Set this to true to enable desktop support.
def includeDesktopSupport = true
@@ -61,15 +60,7 @@ wpi.sim.addDriverstation()
model {
components {
frcUserProgram(NativeExecutableSpec) {
// We don't need to build for roborio -- if we do, we need to install
// a roborio toolchain every time we build in CI
// Ideally, we'd be able to set the roborio toolchain as optional, but
// I can't figure out how to set that environment variable from build.gradle
// (see https://github.com/wpilibsuite/native-utils/blob/2917c69fb5094e36d499c465f047dab81c68446c/ToolchainPlugin/src/main/java/edu/wpi/first/toolchain/ToolchainGraphBuildService.java#L71)
// for now, commented out
// targetPlatform wpi.platforms.roborio
targetPlatform wpi.platforms.systemcore
if (includeDesktopSupport) {
targetPlatform wpi.platforms.desktop
}

View File

@@ -3,9 +3,8 @@ import org.gradle.internal.os.OperatingSystem
pluginManagement {
repositories {
mavenLocal()
jcenter()
gradlePluginPortal()
String frcYear = '2026'
String frcYear = '2027_alpha1'
File frcHome
if (OperatingSystem.current().isWindows()) {
String publicFolder = System.getenv('PUBLIC')
@@ -21,8 +20,11 @@ pluginManagement {
}
def frcHomeMaven = new File(frcHome, 'maven')
maven {
name 'frcHome'
url frcHomeMaven
name = 'frcHome'
url = frcHomeMaven
}
}
}
Properties props = System.getProperties();
props.setProperty("org.gradle.internal.native.headers.unresolved.dependencies.ignore", "true");

View File

@@ -1,7 +1,7 @@
plugins {
id "cpp"
id "google-test-test-suite"
id "edu.wpi.first.GradleRIO" version "2026.2.1"
id "edu.wpi.first.GradleRIO2027" version "2027.0.0-alpha-1"
}
repositories {
@@ -11,14 +11,13 @@ repositories {
wpi.maven.useLocal = false
wpi.maven.useDevelopment = false
wpi.versions.wpilibVersion = "2026.2.1"
wpi.versions.wpimathVersion = "2026.2.1"
wpi.versions.wpilibVersion = "2027.0.+"
// Define my targets (RoboRIO) and artifacts (deployable files)
// Define my targets (SystemCore) and artifacts (deployable files)
// This is added by GradleRIO's backing project DeployUtils.
deploy {
targets {
roborio(getTargetTypeClass('RoboRIO')) {
systemcore(getTargetTypeClass('SystemCore')) {
// Team number is loaded either from the .wpilib/wpilib_preferences.json
// or from command line. If not found an exception will be thrown.
// You can use getTeamOrDefault(team) instead of getTeamNumber if you
@@ -36,8 +35,8 @@ deploy {
// Static files artifact
frcStaticFileDeploy(getArtifactTypeClass('FileTreeArtifact')) {
files = project.fileTree('src/main/deploy')
directory = '/home/lvuser/deploy'
deleteOldFiles = false // Change to true to delete files on roboRIO that no
directory = '/home/systemcore/deploy'
deleteOldFiles = false // Change to true to delete files on SystemCore that no
// longer exist in deploy directory of this project
}
}
@@ -45,7 +44,7 @@ deploy {
}
}
def deployArtifact = deploy.targets.roborio.artifacts.frcCpp
def deployArtifact = deploy.targets.systemcore.artifacts.frcCpp
// Set this to true to enable desktop support.
def includeDesktopSupport = true
@@ -61,15 +60,7 @@ wpi.sim.addDriverstation()
model {
components {
frcUserProgram(NativeExecutableSpec) {
// We don't need to build for roborio -- if we do, we need to install
// a roborio toolchain every time we build in CI
// Ideally, we'd be able to set the roborio toolchain as optional, but
// I can't figure out how to set that environment variable from build.gradle
// (see https://github.com/wpilibsuite/native-utils/blob/2917c69fb5094e36d499c465f047dab81c68446c/ToolchainPlugin/src/main/java/edu/wpi/first/toolchain/ToolchainGraphBuildService.java#L71)
// for now, commented out
// targetPlatform wpi.platforms.roborio
targetPlatform wpi.platforms.systemcore
if (includeDesktopSupport) {
targetPlatform wpi.platforms.desktop
}

View File

@@ -3,9 +3,8 @@ import org.gradle.internal.os.OperatingSystem
pluginManagement {
repositories {
mavenLocal()
jcenter()
gradlePluginPortal()
String frcYear = '2026'
String frcYear = '2027_alpha1'
File frcHome
if (OperatingSystem.current().isWindows()) {
String publicFolder = System.getenv('PUBLIC')
@@ -21,8 +20,11 @@ pluginManagement {
}
def frcHomeMaven = new File(frcHome, 'maven')
maven {
name 'frcHome'
url frcHomeMaven
name = 'frcHome'
url = frcHomeMaven
}
}
}
Properties props = System.getProperties();
props.setProperty("org.gradle.internal.native.headers.unresolved.dependencies.ignore", "true");

View File

@@ -1,7 +1,7 @@
plugins {
id "cpp"
id "google-test-test-suite"
id "edu.wpi.first.GradleRIO" version "2026.2.1"
id "edu.wpi.first.GradleRIO2027" version "2027.0.0-alpha-1"
}
repositories {
@@ -11,14 +11,13 @@ repositories {
wpi.maven.useLocal = false
wpi.maven.useDevelopment = false
wpi.versions.wpilibVersion = "2026.2.1"
wpi.versions.wpimathVersion = "2026.2.1"
wpi.versions.wpilibVersion = "2027.0.+"
// Define my targets (RoboRIO) and artifacts (deployable files)
// Define my targets (SystemCore) and artifacts (deployable files)
// This is added by GradleRIO's backing project DeployUtils.
deploy {
targets {
roborio(getTargetTypeClass('RoboRIO')) {
systemcore(getTargetTypeClass('SystemCore')) {
// Team number is loaded either from the .wpilib/wpilib_preferences.json
// or from command line. If not found an exception will be thrown.
// You can use getTeamOrDefault(team) instead of getTeamNumber if you
@@ -36,8 +35,8 @@ deploy {
// Static files artifact
frcStaticFileDeploy(getArtifactTypeClass('FileTreeArtifact')) {
files = project.fileTree('src/main/deploy')
directory = '/home/lvuser/deploy'
deleteOldFiles = false // Change to true to delete files on roboRIO that no
directory = '/home/systemcore/deploy'
deleteOldFiles = false // Change to true to delete files on SystemCore that no
// longer exist in deploy directory of this project
}
}
@@ -45,7 +44,7 @@ deploy {
}
}
def deployArtifact = deploy.targets.roborio.artifacts.frcCpp
def deployArtifact = deploy.targets.systemcore.artifacts.frcCpp
// Set this to true to enable desktop support.
def includeDesktopSupport = true
@@ -61,15 +60,7 @@ wpi.sim.addDriverstation()
model {
components {
frcUserProgram(NativeExecutableSpec) {
// We don't need to build for roborio -- if we do, we need to install
// a roborio toolchain every time we build in CI
// Ideally, we'd be able to set the roborio toolchain as optional, but
// I can't figure out how to set that environment variable from build.gradle
// (see https://github.com/wpilibsuite/native-utils/blob/2917c69fb5094e36d499c465f047dab81c68446c/ToolchainPlugin/src/main/java/edu/wpi/first/toolchain/ToolchainGraphBuildService.java#L71)
// for now, commented out
// targetPlatform wpi.platforms.roborio
targetPlatform wpi.platforms.systemcore
if (includeDesktopSupport) {
targetPlatform wpi.platforms.desktop
}

View File

@@ -3,9 +3,8 @@ import org.gradle.internal.os.OperatingSystem
pluginManagement {
repositories {
mavenLocal()
jcenter()
gradlePluginPortal()
String frcYear = '2026'
String frcYear = '2027_alpha1'
File frcHome
if (OperatingSystem.current().isWindows()) {
String publicFolder = System.getenv('PUBLIC')
@@ -21,8 +20,11 @@ pluginManagement {
}
def frcHomeMaven = new File(frcHome, 'maven')
maven {
name 'frcHome'
url frcHomeMaven
name = 'frcHome'
url = frcHomeMaven
}
}
}
Properties props = System.getProperties();
props.setProperty("org.gradle.internal.native.headers.unresolved.dependencies.ignore", "true");