Skip to content

Commit 08b4bd1

Browse files
authored
Update to WPILib beta 2 (#1588)
Resolves #1547.
1 parent c536a1c commit 08b4bd1

File tree

15 files changed

+1548
-546
lines changed

15 files changed

+1548
-546
lines changed

build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
id "cpp"
66
id "com.diffplug.spotless" version "6.24.0"
77
id "edu.wpi.first.wpilib.repositories.WPILibRepositoriesPlugin" version "2020.2"
8-
id "edu.wpi.first.GradleRIO" version "2025.1.1-beta-1"
8+
id "edu.wpi.first.GradleRIO" version "2025.1.1-beta-2"
99
id 'edu.wpi.first.WpilibTools' version '1.3.0'
1010
id 'com.google.protobuf' version '0.9.3' apply false
1111
id 'edu.wpi.first.GradleJni' version '1.1.0'
@@ -30,7 +30,7 @@ ext.allOutputsFolder = file("$project.buildDir/outputs")
3030
apply from: "versioningHelper.gradle"
3131

3232
ext {
33-
wpilibVersion = "2025.1.1-beta-1"
33+
wpilibVersion = "2025.1.1-beta-2"
3434
wpimathVersion = wpilibVersion
3535
openCVYear = "2024"
3636
openCVversion = "4.8.0-4"
@@ -109,7 +109,7 @@ spotless {
109109
}
110110

111111
wrapper {
112-
gradleVersion '8.4'
112+
gradleVersion '8.11'
113113
}
114114

115115
ext.getCurrentArch = {

gradle.properties

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ org.gradle.jvmargs= \
66
--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED \
77
--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \
88
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
9+
org.ysb33r.gradle.doxygen.download.url=https://frcmaven.wpi.edu/artifactory/generic-release-mirror/doxygen

gradle/wrapper/gradle-wrapper.jar

-19.7 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

+1-1
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.4-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

+5-2
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

+12-10
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

photon-docs/build.gradle

+35-123
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
plugins {
44
id 'java'
5-
id "org.ysb33r.doxygen" version "0.7.0"
5+
id "org.ysb33r.doxygen" version "1.0.4"
66
}
77

88

@@ -36,15 +36,16 @@ doxygen {
3636
String arch = System.getProperty("os.arch");
3737
if (arch.equals("x86_64") || arch.equals("amd64")) {
3838
executables {
39-
doxygen version : '1.9.4',
40-
baseURI : 'https://frcmaven.wpi.edu/artifactory/generic-release-mirror/doxygen'
39+
doxygen {
40+
executableByVersion('1.12.0')
41+
}
4142
}
4243
}
4344
}
4445

4546
doxygen {
46-
generate_html true
47-
html_extra_stylesheet 'theme.css'
47+
option 'generate_html', true
48+
option 'html_extra_stylesheet', 'theme.css'
4849

4950
cppProjectZips.each {
5051
dependsOn it
@@ -53,126 +54,37 @@ doxygen {
5354
cppIncludeRoots.add(it.absolutePath)
5455
}
5556
}
56-
cppIncludeRoots << '../ntcore/build/generated/main/native/include/'
57-
58-
if (project.hasProperty('docWarningsAsErrors')) {
59-
// Eigen
60-
exclude 'Eigen/**'
61-
exclude 'unsupported/**'
62-
63-
// LLVM
64-
exclude 'wpi/AlignOf.h'
65-
exclude 'wpi/Casting.h'
66-
exclude 'wpi/Chrono.h'
67-
exclude 'wpi/Compiler.h'
68-
exclude 'wpi/ConvertUTF.h'
69-
exclude 'wpi/DenseMap.h'
70-
exclude 'wpi/DenseMapInfo.h'
71-
exclude 'wpi/Endian.h'
72-
exclude 'wpi/EpochTracker.h'
73-
exclude 'wpi/Errc.h'
74-
exclude 'wpi/Errno.h'
75-
exclude 'wpi/ErrorHandling.h'
76-
exclude 'wpi/bit.h'
77-
exclude 'wpi/fs.h'
78-
exclude 'wpi/FunctionExtras.h'
79-
exclude 'wpi/function_ref.h'
80-
exclude 'wpi/Hashing.h'
81-
exclude 'wpi/iterator.h'
82-
exclude 'wpi/iterator_range.h'
83-
exclude 'wpi/ManagedStatic.h'
84-
exclude 'wpi/MapVector.h'
85-
exclude 'wpi/MathExtras.h'
86-
exclude 'wpi/MemAlloc.h'
87-
exclude 'wpi/PointerIntPair.h'
88-
exclude 'wpi/PointerLikeTypeTraits.h'
89-
exclude 'wpi/PointerUnion.h'
90-
exclude 'wpi/raw_os_ostream.h'
91-
exclude 'wpi/raw_ostream.h'
92-
exclude 'wpi/SmallPtrSet.h'
93-
exclude 'wpi/SmallSet.h'
94-
exclude 'wpi/SmallString.h'
95-
exclude 'wpi/SmallVector.h'
96-
exclude 'wpi/StringExtras.h'
97-
exclude 'wpi/StringMap.h'
98-
exclude 'wpi/SwapByteOrder.h'
99-
exclude 'wpi/type_traits.h'
100-
exclude 'wpi/VersionTuple.h'
101-
exclude 'wpi/WindowsError.h'
102-
103-
// fmtlib
104-
exclude 'fmt/**'
105-
106-
// libuv
107-
exclude 'uv.h'
108-
exclude 'uv/**'
109-
exclude 'wpinet/uv/**'
110-
111-
// json
112-
exclude 'wpi/adl_serializer.h'
113-
exclude 'wpi/byte_container_with_subtype.h'
114-
exclude 'wpi/detail/**'
115-
exclude 'wpi/json.h'
116-
exclude 'wpi/json_fwd.h'
117-
exclude 'wpi/ordered_map.h'
118-
exclude 'wpi/thirdparty/**'
119-
120-
// memory
121-
exclude 'wpi/memory/**'
122-
123-
// mpack
124-
exclude 'wpi/mpack.h'
125-
126-
// units
127-
exclude 'units/**'
128-
}
129-
130-
//TODO: building memory docs causes search to break
131-
exclude 'wpi/memory/**'
132-
133-
exclude '*.pb.h'
134-
135-
// Save space by excluding protobuf and eigen
136-
exclude 'Eigen/**'
137-
exclude 'google/protobuf/**'
138-
139-
aliases 'effects=\\par <i>Effects:</i>^^',
140-
'notes=\\par <i>Notes:</i>^^',
141-
'requires=\\par <i>Requires:</i>^^',
142-
'requiredbe=\\par <i>Required Behavior:</i>^^',
143-
'concept{2}=<a href=\"md_doc_concepts.html#\1\">\2</a>',
144-
'defaultbe=\\par <i>Default Behavior:</i>^^'
145-
case_sense_names false
146-
extension_mapping 'inc=C++', 'no_extension=C++'
147-
extract_all true
148-
extract_static true
149-
file_patterns '*'
150-
full_path_names true
151-
generate_html true
152-
generate_latex false
153-
generate_treeview true
154-
html_extra_stylesheet 'theme.css'
155-
html_timestamp true
156-
javadoc_autobrief true
157-
project_name 'PhotonVision C++'
158-
project_logo '../photon-client/src/assets/images/logoSmall.svg'
159-
project_number pubVersion
160-
quiet true
161-
recursive true
162-
strip_code_comments false
163-
strip_from_inc_path cppIncludeRoots as String[]
164-
strip_from_path cppIncludeRoots as String[]
165-
use_mathjax true
166-
warnings false
167-
warn_if_incomplete_doc true
168-
warn_if_undocumented false
169-
warn_no_paramdoc true
57+
option 'case_sense_names', false
58+
option 'extension_mapping', 'inc=C++ no_extension=C++'
59+
option 'extract_all', true
60+
option 'extract_static', true
61+
option 'file_patterns', '*'
62+
option 'full_path_names', true
63+
option 'generate_html', true
64+
option 'generate_latex', false
65+
option 'generate_treeview', true
66+
option 'html_extra_stylesheet', 'theme.css'
67+
option 'html_timestamp', true
68+
option 'javadoc_autobrief', true
69+
option 'project_name', 'PhotonVision C++'
70+
option 'project_logo', '../docs/source/assets/RoundLogo.png'
71+
option 'project_number', pubVersion
72+
option 'quiet', true
73+
option 'recursive', true
74+
option 'strip_code_comments', false
75+
option 'strip_from_inc_path', cppIncludeRoots
76+
option 'strip_from_path', cppIncludeRoots
77+
option 'use_mathjax', true
78+
option 'warnings', false
79+
option 'warn_if_incomplete_doc', true
80+
option 'warn_if_undocumented', false
81+
option 'warn_no_paramdoc', true
17082

17183
//enable doxygen preprocessor expansion of WPI_DEPRECATED to fix MotorController docs
172-
enable_preprocessing true
173-
macro_expansion true
174-
expand_only_predef true
175-
predefined "WPI_DEPRECATED(x)=[[deprecated(x)]]\"\\\n" +
84+
option 'enable_preprocessing', true
85+
option 'macro_expansion', true
86+
option 'expand_only_predef', true
87+
option 'predefined', "WPI_DEPRECATED(x)=[[deprecated(x)]]\"\\\n" +
17688
"\"__cplusplus\"\\\n" +
17789
"\"HAL_ENUM(name)=enum name : int32_t"
17890

0 commit comments

Comments
 (0)