Skip to content

Commit deb59e6

Browse files
committed
Upgrade dependencies for 2026
1 parent 475031a commit deb59e6

File tree

11 files changed

+55
-79
lines changed

11 files changed

+55
-79
lines changed

.github/workflows/lint-format.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ jobs:
1414
name: "wpiformat"
1515
runs-on: ubuntu-22.04
1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v6
1818
- name: Fetch all history and metadata
1919
run: |
2020
git fetch --prune --unshallow
2121
git checkout -b pr
2222
git branch -f main origin/main
23-
- uses: actions/setup-python@v4
23+
- uses: actions/setup-python@v6
2424
with:
25-
python-version: 3.11
25+
python-version: 3.14
2626
- name: Install wpiformat
2727
run: pip3 install wpiformat==2025.79
2828
- name: Run

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
name: "mrcal-jni - Build - ${{ matrix.arch-name }}"
3333

3434
steps:
35-
- uses: actions/checkout@v5
35+
- uses: actions/checkout@v6
3636
with:
3737
submodules: 'true'
3838
fetch-depth: 0

.wpiformat

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,8 @@
11
cppHeaderFileInclude {
22
\.h$
3-
\.hpp$
4-
\.inc$
5-
\.inl$
6-
}
7-
8-
cppSrcFileInclude {
9-
\.cpp$
103
}
114

125
modifiableFileExclude {
13-
\.jpg$
14-
\.jpeg$
15-
\.png$
16-
\.gif$
17-
\.so$
18-
\.dll$
19-
\.webp$
20-
\.ico$
21-
gradlew
226
mrcal/
237
libdogleg/
248
vnlog/

CMakeLists.txt

Lines changed: 9 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.18)
1+
cmake_minimum_required(VERSION 3.24)
22
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
33
project(mrcal_jni LANGUAGES C CXX VERSION 1.0.0)
44

@@ -62,6 +62,13 @@ set(USE_LOCKING ON)
6262
set(USE_THREAD OFF)
6363
set(NOFORTRAN ON)
6464

65+
# ARMv8 is what our coprocessors run, but not the CI machines. Ensure we don't accidentally include ARMv9 instructions
66+
if(
67+
CMAKE_SYSTEM_PROCESSOR STREQUAL "ARM64"
68+
AND CMAKE_SYSTEM_NAME STREQUAL "Linux"
69+
)
70+
set(TARGET ARMV8)
71+
endif()
6572
# We need PIC for this to work as a shared library
6673
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
6774

@@ -83,28 +90,6 @@ if(NOT APPLE)
8390
elseif(TARGET OpenBLAS)
8491
set(OPENBLAS_TARGET OpenBLAS)
8592
message(STATUS "Using OpenBLAS target")
86-
elseif(TARGET libopenblas)
87-
set(OPENBLAS_TARGET libopenblas)
88-
message(STATUS "Using libopenblas target")
89-
else()
90-
# Fallback: find the library file manually
91-
find_library(
92-
OPENBLAS_LIB
93-
NAMES openblas libopenblas
94-
PATHS
95-
${openblas_external_BINARY_DIR}
96-
${openblas_external_BINARY_DIR}/lib
97-
${openblas_external_BINARY_DIR}/lib/Release
98-
NO_DEFAULT_PATH
99-
REQUIRED
100-
)
101-
message(STATUS "Using OpenBLAS library file: ${OPENBLAS_LIB}")
102-
add_library(openblas_imported STATIC IMPORTED)
103-
set_target_properties(
104-
openblas_imported
105-
PROPERTIES IMPORTED_LOCATION ${OPENBLAS_LIB}
106-
)
107-
set(OPENBLAS_TARGET openblas_imported)
10893
endif()
10994
else()
11095
set(BLA_VENDOR Apple)
@@ -142,12 +127,7 @@ else()
142127
endif()
143128

144129
# And pull in JNI
145-
find_package(JNI)
146-
if(JNI_FOUND)
147-
# Fixes odd AWT dependency
148-
set(JNI_INCLUDE_DIRS ${JAVA_INCLUDE_PATH} ${JAVA_INCLUDE_PATH2})
149-
message(STATUS "JNI_INCLUDE_DIRS=${JNI_INCLUDE_DIRS}")
150-
endif()
130+
find_package(JNI REQUIRED COMPONENTS JVM)
151131

152132
# headers and sources
153133
set(INCLUDE_HPP)

build.gradle

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
plugins {
22
id "java"
3-
id 'edu.wpi.first.WpilibTools' version '1.3.0'
3+
id 'org.photonvision.tools.WpilibTools' version '2.3.1-photon'
44
id "edu.wpi.first.wpilib.repositories.WPILibRepositoriesPlugin" version "2020.2"
5-
id "com.diffplug.spotless" version "6.22.0"
5+
id "com.diffplug.spotless" version "8.1.0"
66
}
77

88
allprojects {
@@ -24,8 +24,8 @@ ext {
2424
}
2525

2626
java {
27-
sourceCompatibility = JavaVersion.VERSION_11
28-
targetCompatibility = JavaVersion.VERSION_11
27+
sourceCompatibility = JavaVersion.VERSION_17
28+
targetCompatibility = JavaVersion.VERSION_17
2929
}
3030

3131
dependencies {
@@ -57,10 +57,7 @@ test {
5757
useJUnitPlatform()
5858
}
5959

60-
ext.nativeName = wpilibTools.platformMapper.wpilibClassifier
61-
.replace('windows', 'windows/')
62-
.replace('osx', 'osx/')
63-
.replace('linux', 'linux/')
60+
def nativeName = wpilibTools.platformMapper.platformPath
6461
ext.outputsFolder = file("$buildDir/outputs")
6562

6663
println("Building for $nativeName")

gradle/wrapper/gradle-wrapper.jar

-19.5 KB
Binary file not shown.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
2-
distributionPath=permwrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME
7-
zipStorePath=permwrapper/dists
7+
zipStorePath=wrapper/dists

gradlew

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

gradlew.bat

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

publish.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ publishing {
2525
mavenJava(MavenPublication) {
2626
groupId = artifactGroupId
2727
artifactId = "${baseArtifactId}-java"
28-
version = pubVersion;// + "-" + nativeName;
28+
version = pubVersion;
2929

3030
from components.java
3131
}
3232
mavenJNI(MavenPublication) {
3333
groupId = artifactGroupId
3434
artifactId = "${baseArtifactId}-jni"
35-
version = pubVersion;// + "-" + nativeName;
35+
version = pubVersion;
3636

3737
artifact nativeLibraryJar
3838
}

0 commit comments

Comments
 (0)