Skip to content

Commit 34b7e89

Browse files
Merge pull request #89 from OakvilleDynamics/dependabot/gradle/edu.wpi.first.GradleRIO-2025.1.1
Bump edu.wpi.first.GradleRIO from 2024.3.2 to 2025.1.1
2 parents c574d67 + 669e8f6 commit 34b7e89

File tree

4 files changed

+19
-16
lines changed

4 files changed

+19
-16
lines changed

.wpilib/wpilib_preferences.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"enableCppIntellisense": false,
33
"currentLanguage": "java",
4-
"projectYear": "2024",
4+
"projectYear": "2025",
55
"teamNumber": 8719
66
}

build.gradle

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
plugins {
22
id "java"
3-
id "edu.wpi.first.GradleRIO" version "2024.3.2"
3+
id "edu.wpi.first.GradleRIO" version "2025.1.1"
44
id 'com.diffplug.spotless' version '6.25.0'
55
}
66

7-
sourceCompatibility = JavaVersion.VERSION_17
8-
targetCompatibility = JavaVersion.VERSION_17
7+
java {
8+
sourceCompatibility = JavaVersion.VERSION_17
9+
targetCompatibility = JavaVersion.VERSION_17
10+
}
911

1012
def ROBOT_MAIN_CLASS = "frc.robot.Main"
1113

@@ -32,6 +34,9 @@ deploy {
3234
frcStaticFileDeploy(getArtifactTypeClass('FileTreeArtifact')) {
3335
files = project.fileTree('src/main/deploy')
3436
directory = '/home/lvuser/deploy'
37+
// Change to true to delete files on roboRIO that no
38+
// longer exist in deploy directory of this project
39+
deleteOldFiles = false
3540
}
3641
}
3742
}
@@ -49,6 +54,7 @@ def includeDesktopSupport = true
4954
// Defining my dependencies. In this case, WPILib (+ friends), and vendor libraries.
5055
// Also defines JUnit 5.
5156
dependencies {
57+
annotationProcessor wpi.java.deps.wpilibAnnotations()
5258
implementation wpi.java.deps.wpilib()
5359
implementation wpi.java.vendor.java()
5460

@@ -66,10 +72,8 @@ dependencies {
6672
nativeRelease wpi.java.vendor.jniRelease(wpi.platforms.desktop)
6773
simulationRelease wpi.sim.enableRelease()
6874

69-
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.11.4'
70-
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.11.4'
71-
72-
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.11.4'
75+
testImplementation 'org.junit.jupiter:junit-jupiter:5.11.4'
76+
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
7377
}
7478

7579
test {
@@ -90,6 +94,7 @@ jar {
9094
it.isDirectory() ? it : zipTree(it)
9195
}
9296
}
97+
from sourceSets.main.allSource
9398
manifest edu.wpi.first.gradlerio.GradleRIOPlugin.javaManifest(ROBOT_MAIN_CLASS)
9499
duplicatesStrategy = DuplicatesStrategy.INCLUDE
95100
}

src/main/java/frc/robot/Robot.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,20 @@
99
import edu.wpi.first.wpilibj2.command.CommandScheduler;
1010

1111
/**
12-
* The VM is configured to automatically run this class, and to call the functions corresponding to
13-
* each mode, as described in the TimedRobot documentation. If you change the name of this class or
14-
* the package after creating this project, you must also update the build.gradle file in the
15-
* project.
12+
* The methods in this class are called automatically corresponding to each mode, as described in
13+
* the TimedRobot documentation. If you change the name of this class or the package after creating
14+
* this project, you must also update the Main.java file in the project.
1615
*/
1716
public class Robot extends TimedRobot {
1817
private Command m_autonomousCommand;
1918

20-
private RobotContainer m_robotContainer;
19+
private final RobotContainer m_robotContainer;
2120

2221
/**
2322
* This function is run when the robot is first started up and should be used for any
2423
* initialization code.
2524
*/
26-
@Override
27-
public void robotInit() {
25+
public Robot() {
2826
// Instantiate our RobotContainer. This will perform all our button bindings, and put our
2927
// autonomous chooser on the dashboard.
3028
m_robotContainer = new RobotContainer();

vendordeps/WPILibNewCommands.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "WPILib-New-Commands",
44
"version": "1.0.0",
55
"uuid": "111e20f7-815e-48f8-9dd6-e675ce75b266",
6-
"frcYear": "2024",
6+
"frcYear": "2025",
77
"mavenUrls": [],
88
"jsonUrl": "",
99
"javaDependencies": [

0 commit comments

Comments
 (0)