Skip to content

Commit

Permalink
Add WPIcal (#770)
Browse files Browse the repository at this point in the history
  • Loading branch information
sciencewhiz authored Jan 1, 2025
1 parent 9ccb3ab commit 1dcf86e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public abstract class WPIVersionsExtension {
private static final String sysIdVersion = "2025.1.1-beta-3";
private static final String roboRIOTeamNumberSetterVersion = "2025.1.1-beta-3";
private static final String dataLogToolVersion = "2025.1.1-beta-3";
private static final String wpicalToolVersion = "2025.1.1";


public abstract Property<String> getWpilibVersion();
Expand All @@ -44,6 +45,7 @@ public abstract class WPIVersionsExtension {
public abstract Property<String> getSysIdVersion();
public abstract Property<String> getRoboRIOTeamNumberSetterVersion();
public abstract Property<String> getDataLogToolVersion();
public abstract Property<String> getwpicalToolVersion();

@Inject
public WPIVersionsExtension() {
Expand All @@ -65,6 +67,7 @@ public WPIVersionsExtension() {
getSysIdVersion().convention(sysIdVersion);
getRoboRIOTeamNumberSetterVersion().convention(roboRIOTeamNumberSetterVersion);
getDataLogToolVersion().convention(dataLogToolVersion);
getwpicalToolVersion().convention(wpicalToolVersion);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ public void apply(Project project) {
cppTools.add(new WPICppTool(project, "DataLogTool", wpi.getVersions().getDataLogToolVersion(),
"edu.wpi.first.tools:DataLogTool", toolsFolder));

cppTools.add(new WPICppTool(project, "wpical", wpi.getVersions().getwpicalToolVersion(),
"edu.wpi.first.tools:wpical", toolsFolder));

project.getTasks().register("InstallAllTools", task -> {
task.setGroup("GradleRIO");
task.setDescription("Install All Tools");
Expand Down
3 changes: 2 additions & 1 deletion versionupdates.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ def versionMap = [
opencvVersion: 'edu.wpi.first.thirdparty.frc2025.opencv:opencv-java:+',
niLibrariesVersion: 'edu.wpi.first.ni-libraries:runtime:+:allowedimages@zip',
imguiVersion: 'edu.wpi.first.thirdparty.frc2024:imgui:+:headers',
wpimathVersion: 'edu.wpi.first.wpimath:wpimath-java:+'
wpimathVersion: 'edu.wpi.first.wpimath:wpimath-java:+',
wpicalToolVersion: 'edu.wpi.first.tools:wpical:+:windowsx86-64@zip',
]

configurations {
Expand Down

0 comments on commit 1dcf86e

Please sign in to comment.