Skip to content

Commit 169c7e3

Browse files
authored
Merge pull request #19 from REVrobotics/update-2024
Update for FRC 2024
2 parents ae85963 + 7554779 commit 169c7e3

14 files changed

Lines changed: 101 additions & 65 deletions

.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,5 +158,21 @@ gradle-app.setting
158158
.settings/
159159
bin/
160160

161+
# IntelliJ
162+
*.iml
163+
*.ipr
164+
*.iws
165+
.idea/
166+
out/
167+
168+
# Fleet
169+
.fleet
170+
161171
# Simulation GUI and other tools window save file
162172
*-window.json
173+
174+
# Simulation data log directory
175+
logs/
176+
177+
# Folder that has CTRE Phoenix Sim device config storage
178+
ctre_sim/

.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": "2023",
4+
"projectYear": "2024",
55
"teamNumber": 2714
66
}

WPILib-License.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2009-2021 FIRST and other WPILib contributors
1+
Copyright (c) 2009-2023 FIRST and other WPILib contributors
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without

build.gradle

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
plugins {
22
id "java"
3-
id "edu.wpi.first.GradleRIO" version "2023.2.1"
3+
id "edu.wpi.first.GradleRIO" version "2024.1.1"
44
}
55

6-
sourceCompatibility = JavaVersion.VERSION_11
7-
targetCompatibility = JavaVersion.VERSION_11
6+
java {
7+
sourceCompatibility = JavaVersion.VERSION_17
8+
targetCompatibility = JavaVersion.VERSION_17
9+
}
810

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

@@ -65,9 +67,8 @@ dependencies {
6567
nativeRelease wpi.java.vendor.jniRelease(wpi.platforms.desktop)
6668
simulationRelease wpi.sim.enableRelease()
6769

68-
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
69-
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.8.2'
70-
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
70+
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.1'
71+
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
7172
}
7273

7374
test {
@@ -84,6 +85,7 @@ wpi.sim.addDriverstation()
8485
// knows where to look for our Robot Class.
8586
jar {
8687
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
88+
from sourceSets.main.allSource
8789
manifest edu.wpi.first.gradlerio.GradleRIOPlugin.javaManifest(ROBOT_MAIN_CLASS)
8890
duplicatesStrategy = DuplicatesStrategy.INCLUDE
8991
}

gradle/wrapper/gradle-wrapper.jar

-16.9 KB
Binary file not shown.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=permwrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
46
zipStoreBase=GRADLE_USER_HOME
57
zipStorePath=permwrapper/dists

gradlew

Lines changed: 22 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

settings.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pluginManagement {
44
repositories {
55
mavenLocal()
66
gradlePluginPortal()
7-
String frcYear = '2023'
7+
String frcYear = '2024'
88
File frcHome
99
if (OperatingSystem.current().isWindows()) {
1010
String publicFolder = System.getenv('PUBLIC')
@@ -25,3 +25,6 @@ pluginManagement {
2525
}
2626
}
2727
}
28+
29+
Properties props = System.getProperties();
30+
props.setProperty("org.gradle.internal.native.headers.unresolved.dependencies.ignore", "true");

src/main/java/frc/robot/Constants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
package frc.robot;
66

7-
import com.revrobotics.CANSparkMax.IdleMode;
7+
import com.revrobotics.CANSparkBase.IdleMode;
88

99
import edu.wpi.first.math.geometry.Translation2d;
1010
import edu.wpi.first.math.kinematics.SwerveDriveKinematics;

0 commit comments

Comments
 (0)