Skip to content

Commit e5545d4

Browse files
authored
Merge branch 'main' into jnitestrebuild
2 parents 53b9105 + 9234ce8 commit e5545d4

40 files changed

+144
-121
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- uses: actions/download-artifact@v4
3838
with:
3939
name: Maven
40-
path: ~/.m2/
40+
path: ~/.m2/repository/
4141

4242
- name: Setup RoboRIO Toolchain
4343
if: ${{ (matrix.language == 'cpp') || (matrix.language == 'asm') || (matrix.language == 'jni') }}

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repositories {
1717
dependencies {
1818
api 'com.google.code.gson:gson:2.8.6'
1919

20-
api 'edu.wpi.first:native-utils:2024.6.1'
20+
api 'edu.wpi.first:native-utils:2025.4.0'
2121

2222
api 'de.undercouch:gradle-download-task:4.1.2'
2323

@@ -109,6 +109,6 @@ examplesFolder.eachFile { File file ->
109109
jar.finalizedBy zipExamples
110110

111111
wrapper {
112-
gradleVersion = '8.5'
112+
gradleVersion = '8.10.2'
113113
distributionType = Wrapper.DistributionType.BIN
114114
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = 2024.3.2
1+
version = 2025.1.1-beta-1

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=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
# See the License for the specific language governing permissions and
1616
# limitations under the License.
1717
#
18+
# SPDX-License-Identifier: Apache-2.0
19+
#
1820

1921
##############################################################################
2022
#
@@ -55,7 +57,7 @@
5557
# Darwin, MinGW, and NonStop.
5658
#
5759
# (3) This script is generated from the Groovy template
58-
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
60+
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
5961
# within the Gradle project.
6062
#
6163
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -84,7 +86,8 @@ done
8486
# shellcheck disable=SC2034
8587
APP_BASE_NAME=${0##*/}
8688
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87-
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
89+
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
90+
' "$PWD" ) || exit
8891

8992
# Use the maximum available, or set MAX_FD != -1 to use that value.
9093
MAX_FD=maximum

gradlew.bat

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
@rem See the License for the specific language governing permissions and
1414
@rem limitations under the License.
1515
@rem
16+
@rem SPDX-License-Identifier: Apache-2.0
17+
@rem
1618

1719
@if "%DEBUG%"=="" @echo off
1820
@rem ##########################################################################
@@ -43,11 +45,11 @@ set JAVA_EXE=java.exe
4345
%JAVA_EXE% -version >NUL 2>&1
4446
if %ERRORLEVEL% equ 0 goto execute
4547

46-
echo.
47-
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
48-
echo.
49-
echo Please set the JAVA_HOME variable in your environment to match the
50-
echo location of your Java installation.
48+
echo. 1>&2
49+
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
50+
echo. 1>&2
51+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
52+
echo location of your Java installation. 1>&2
5153

5254
goto fail
5355

@@ -57,11 +59,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
5759

5860
if exist "%JAVA_EXE%" goto execute
5961

60-
echo.
61-
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
62-
echo.
63-
echo Please set the JAVA_HOME variable in your environment to match the
64-
echo location of your Java installation.
62+
echo. 1>&2
63+
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
64+
echo. 1>&2
65+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
66+
echo location of your Java installation. 1>&2
6567

6668
goto fail
6769

src/main/java/edu/wpi/first/gradlerio/deploy/roborio/InvalidImageException.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,6 @@ public List<String> getAllowedImageVersions() {
1616
return allowedImageVersions;
1717
}
1818

19-
private static String parseMessage(String imageVersion) {
20-
return "Invalid RoboRIO Image Version!" +
21-
"\nRoboRIO image and GradleRIO versions are incompatible:" +
22-
"\n\tCurrent image version: " + imageVersion +
23-
"\n\tGradleRIO-compatible image versions: 2024_v2.* except 2024_v2.0" +
24-
"\nSee https://docs.wpilib.org/en/stable/docs/zero-to-robot/step-3/imaging-your-roborio.html" +
25-
"for information about upgrading the RoboRIO image." +
26-
"\nSee https://docs.wpilib.org/en/stable/docs/zero-to-robot/step-2/wpilib-setup.html and" +
27-
"\nhttps://docs.wpilib.org/en/stable/docs/software/vscode-overview/importing-gradle-project.html" +
28-
"\nfor information about updating WPILib and GradleRIO.";
29-
}
30-
3119
private static String parseMessage(String imageVersion, List<String> allowedImageVersions) {
3220
return "Invalid RoboRIO Image Version!" +
3321
"\nRoboRIO image and GradleRIO versions are incompatible:" +
@@ -46,12 +34,6 @@ public InvalidImageException(String imageVersion, List<String> allowedImageVersi
4634
this.allowedImageVersions = new ArrayList<>(allowedImageVersions);
4735
}
4836

49-
public InvalidImageException(String imageVersion, boolean isSpecialCase) {
50-
super(parseMessage(imageVersion));
51-
this.imageVersion = imageVersion;
52-
this.allowedImageVersions = new ArrayList<>();
53-
}
54-
5537
public InvalidImageException() {
5638
super("Could not parse image version!");
5739
allowedImageVersions = List.of();

src/main/java/edu/wpi/first/gradlerio/deploy/roborio/RoboRIO.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,6 @@ private void readAndVerifyImage(DeployContext context) {
150150
}
151151

152152
private void verifyImageVersion(String image) {
153-
if (image.equalsIgnoreCase("2024_v2.0")) {
154-
throw new InvalidImageException(image, true);
155-
}
156-
157153
boolean foundMatch = validImageVersions.stream().filter(x -> {
158154
int index = x.indexOf("*");
159155
if (index == -1) {

src/main/java/edu/wpi/first/gradlerio/wpi/WPIExtension.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
public class WPIExtension {
2525
// WPILib (first.wpi.edu/FRC/roborio/maven) libs
2626

27-
private static final List<String> validImageVersions = List.of("2024_v2.*");
27+
private static final List<String> validImageVersions = List.of("2025_v1.*");
2828

2929
private String jreArtifactLocation = "edu.wpi.first.jdk:roborio-2024:17.0.9u7-3";
3030

@@ -58,7 +58,7 @@ public WPIExtension(Project project) {
5858
platforms = new NativePlatforms();
5959

6060
frcYear = factory.property(String.class);
61-
frcYear.convention("2024");
61+
frcYear.convention("2025");
6262

6363
frcHome = factory.directoryProperty().fileProvider(project.provider(WPIExtension::computeHomeRoot))
6464
.dir(frcYear);
@@ -147,8 +147,6 @@ private static File computeHomeRoot() {
147147
// "wpilibVersion" : new Tuple("WPILib", wpilibVersion, "wpilib"),
148148
// "opencvVersion" : new Tuple("OpenCV", opencvVersion, "opencv"),
149149
// "frcYear " : new Tuple("FRC Year", frcYear, "frcYear"),
150-
// "googleTestVersion" : new Tuple("Google Test", googleTestVersion,
151-
// "googleTest"),
152150
// "imguiVersion" : new Tuple("ImGUI", imguiVersion, "imgui"),
153151
// "wpimathVersion" : new Tuple("WPIMath", wpimathVersion, "wpimath"),
154152
// "ejmlVersion" : new Tuple("EJML", ejmlVersion, "ejml"),

0 commit comments

Comments
 (0)