From 464d8b6acc85d6c309bf1251af9b4d6aba7fcb8d Mon Sep 17 00:00:00 2001 From: T Grinch <10247070+thenetworkgrinch@users.noreply.github.com> Date: Tue, 3 Dec 2024 00:17:36 -0600 Subject: [PATCH] Added variable to control wpilib version easier. (#42) * Added wpilib version variable. * Fixed find/replace mistake * Update config.gradle --------- Co-authored-by: thenetworkgrinch --- build.gradle | 19 +++++++++++-------- config.gradle | 2 +- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/build.gradle b/build.gradle index 1773efb..c0a6adb 100644 --- a/build.gradle +++ b/build.gradle @@ -8,6 +8,9 @@ plugins { id 'edu.wpi.first.GradleVsCode' version '2.1.0' } +// WPILib Version +ext.wpilibVersion = "2025.+" + repositories { mavenCentral() } @@ -27,14 +30,14 @@ apply from: 'config.gradle' // Apply Java configuration dependencies { - implementation 'edu.wpi.first.cscore:cscore-java:2025.+' - implementation 'edu.wpi.first.cameraserver:cameraserver-java:2025.+' - implementation 'edu.wpi.first.ntcore:ntcore-java:2025.+' - implementation 'edu.wpi.first.wpilibj:wpilibj-java:2025.+' - implementation 'edu.wpi.first.wpiutil:wpiutil-java:2025.+' - implementation 'edu.wpi.first.wpimath:wpimath-java:2025.+' - implementation 'edu.wpi.first.wpiunits:wpiunits-java:2025.+' - implementation 'edu.wpi.first.hal:hal-java:2025.+' + implementation "edu.wpi.first.cscore:cscore-java:$wpilibVersion" + implementation "edu.wpi.first.cameraserver:cameraserver-java:$wpilibVersion" + implementation "edu.wpi.first.ntcore:ntcore-java:$wpilibVersion" + implementation "edu.wpi.first.wpilibj:wpilibj-java:$wpilibVersion" + implementation "edu.wpi.first.wpiutil:wpiutil-java:$wpilibVersion" + implementation "edu.wpi.first.wpimath:wpimath-java:$wpilibVersion" + implementation "edu.wpi.first.wpiunits:wpiunits-java:$wpilibVersion" + implementation "edu.wpi.first.hal:hal-java:$wpilibVersion" implementation "org.ejml:ejml-simple:0.43.1" implementation "com.fasterxml.jackson.core:jackson-annotations:2.15.2" implementation "com.fasterxml.jackson.core:jackson-core:2.15.2" diff --git a/config.gradle b/config.gradle index 6889669..118c35b 100644 --- a/config.gradle +++ b/config.gradle @@ -8,7 +8,7 @@ nativeUtils.withCrossLinuxArm64() nativeUtils { wpi { configureDependencies { - wpiVersion = "2025.+" + wpiVersion = wpilibVersion opencvYear = "frc2024" niLibVersion = "2025.0.0" opencvVersion = "4.8.0-4"