Add module-info definitions for the Java libraries #7236
Labels
component: apriltag
AprilTag library
component: command-based
WPILib Command Based Library
component: cscore
CameraServer library
component: epilogue
Annotation-based logging library
component: hal
Hardware Abstraction Layer
component: ntcore
NetworkTables library
component: wpilibj
WPILib Java
component: wpimath
Math library
component: wpiunits
Java units library
component: wpiutil
WPI utility library
type: chore
Formatting, reorganizing, and other necessary (but less impactful) tasks.
Java 23 added support for module imports, which would allow users to use eg
import module wpilib.units
to import every type from the wpiunits library instead of needing a separate import for each class. It effectively acts like a star import on every package exported by the module. This could be helpful for new programmers who aren't familiar with the library, and for example projects and documentation.https://openjdk.org/jeps/476
While module imports will need the new MRC for a compatible JDK version, the library can still be modularized on our current JDK
The text was updated successfully, but these errors were encountered: