Skip to content

Commit 87145e6

Browse files
authored
Merge pull request #107 from DeepBlueRobotics/2025
2 parents 1f43e18 + aed08b5 commit 87145e6

49 files changed

Lines changed: 3222 additions & 1513 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/javadoc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Generate Javadoc
1818
run: ./gradlew javadoc
1919
- name: Build Artifact
20-
uses: actions/upload-pages-artifact@v3
20+
uses: actions/upload-pages-artifact@v4
2121
with:
2222
path: ./build/docs/javadoc
2323
deploy-javadoc:

.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": 199
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-2023 FIRST and other WPILib contributors
1+
Copyright (c) 2009-2024 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: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
id "java"
3-
id "edu.wpi.first.GradleRIO" version "2024.3.1"
3+
id "edu.wpi.first.GradleRIO" version "2025.3.2"
44
id "maven-publish"
55
id "eclipse"
66
}
@@ -11,7 +11,6 @@ java {
1111
}
1212

1313
group 'org.carlmontrobotics'
14-
1514
def ROBOT_MAIN_CLASS = ""
1615

1716
// Define my targets (RoboRIO) and artifacts (deployable files)
@@ -37,6 +36,8 @@ deploy {
3736
frcStaticFileDeploy(getArtifactTypeClass('FileTreeArtifact')) {
3837
files = project.fileTree('src/main/deploy')
3938
directory = '/home/lvuser/deploy'
39+
deleteOldFiles = false // Change to true to delete files on roboRIO that no
40+
// longer exist in deploy directory of this project
4041
}
4142
}
4243
}
@@ -54,6 +55,7 @@ def includeDesktopSupport = true
5455
// Defining my dependencies. In this case, WPILib (+ friends), and vendor libraries.
5556
// Also defines JUnit 5.
5657
dependencies {
58+
annotationProcessor wpi.java.deps.wpilibAnnotations()
5759
implementation wpi.java.deps.wpilib()
5860
implementation wpi.java.vendor.java()
5961

@@ -71,17 +73,24 @@ dependencies {
7173
nativeRelease wpi.java.vendor.jniRelease(wpi.platforms.desktop)
7274
simulationRelease wpi.sim.enableRelease()
7375

76+
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.1'
77+
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
7478
testImplementation 'junit:junit:4.13.2'
7579

7680
implementation 'org.mockito:mockito-core:5.11.0'
7781
implementation group: 'org.apache.commons', name: 'commons-csv', version: '1.6'
7882
}
7983

84+
test {
85+
useJUnitPlatform()
86+
systemProperty 'junit.jupiter.extensions.autodetection.enabled', 'true'
87+
}
88+
8089
// Simulation configuration (e.g. environment variables).
8190
wpi.sim.addGui().defaultEnabled = true
8291
wpi.sim.addDriverstation()
8392

84-
// Setting up my Jar File.
93+
// Setting up my Jar File.
8594
jar {
8695
// Note: Do NOT add all the libraries to the jar. Doing so will cause robot programs to have
8796
// 2 copies of each of the libraries classes, one from lib199 and one from the robot program.
@@ -111,21 +120,20 @@ deployArtifact.jarTask = jar
111120
wpi.java.configureExecutableTasks(jar)
112121
wpi.java.configureTestTasks(test)
113122

114-
// Configure string concat to always inline compile
115-
tasks.withType(JavaCompile) {
116-
options.compilerArgs.add '-XDstringConcat=inline'
117-
}
118-
119123
// Allow the generated javadocs to link to the documentation of WPILib and vendor libraries
120124
javadoc {
121125
options.with {
122126
links 'https://github.wpilib.org/allwpilib/docs/release/java/'
123127
links 'https://www.kauailabs.com/public_files/navx-mxp/apidocs/java/'
124128
links 'https://pathplanner.dev/api/java/'
125-
links 'https://api.ctr-electronics.com/phoenix/release/java/'
126-
links 'https://api.ctr-electronics.com/phoenix6/release/java/'
129+
links 'https://api.ctr-electronics.com/phoenix/stable/java/'
130+
links 'https://api.ctr-electronics.com/phoenix6/stable/java/'
127131
links 'https://www.playingwithfusion.com/frc/2022/javadoc/'
128132
links 'https://codedocs.revrobotics.com/java/'
129133
}
130134
}
131135

136+
// Configure string concat to always inline compile
137+
tasks.withType(JavaCompile) {
138+
options.compilerArgs.add '-XDstringConcat=inline'
139+
}

gradle/wrapper/gradle-wrapper.jar

121 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=permwrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

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

gradlew.bat

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

settings.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pluginManagement {
44
repositories {
55
mavenLocal()
66
gradlePluginPortal()
7-
String frcYear = '2024'
7+
String frcYear = '2025'
88
File frcHome
99
if (OperatingSystem.current().isWindows()) {
1010
String publicFolder = System.getenv('PUBLIC')
@@ -20,8 +20,8 @@ pluginManagement {
2020
}
2121
def frcHomeMaven = new File(frcHome, 'maven')
2222
maven {
23-
name 'frcHome'
24-
url frcHomeMaven
23+
name = 'frcHome'
24+
url = frcHomeMaven
2525
}
2626
}
2727
}

src/main/java/org/carlmontrobotics/lib199/CachedSparkMax.java

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)