From 2d12892a9d042e8aae91ae6807d8beb608259d78 Mon Sep 17 00:00:00 2001 From: Kevin Cooney Date: Wed, 24 Sep 2025 19:38:15 -0700 Subject: [PATCH 1/2] Configure all maven repos in one place This reduces duplication, and allows us to not have to add vendordeps for indirect dependencies. --- build.gradle | 21 +++++++++++++++++ lib/build.gradle | 9 ------- lib/vendordeps/PathplannerLib.json | 38 ------------------------------ limelight/build.gradle | 4 ---- testing/build.gradle | 9 ------- 5 files changed, 21 insertions(+), 60 deletions(-) create mode 100644 build.gradle delete mode 100644 lib/vendordeps/PathplannerLib.json diff --git a/build.gradle b/build.gradle new file mode 100644 index 00000000..91f33473 --- /dev/null +++ b/build.gradle @@ -0,0 +1,21 @@ +allprojects { + repositories { + mavenCentral() + maven { + // WPI + url 'https://frcmaven.wpi.edu/artifactory/release/' + } + maven { + // CTRE + url 'https://maven.ctr-electronics.com/release' + } + maven { + // REV Robotics + url 'https://maven.revrobotics.com/' + } + maven { + // PathPlanner + url 'https://3015rangerrobotics.github.io/pathplannerlib/repo' + } + } +} \ No newline at end of file diff --git a/lib/build.gradle b/lib/build.gradle index 1d6c8e32..3f2aa47f 100644 --- a/lib/build.gradle +++ b/lib/build.gradle @@ -6,15 +6,6 @@ plugins { version = '2.0.0-alpha.1' -repositories { - // Use Maven Central for resolving dependencies. - mavenCentral() - maven { - // WPI - url 'https://frcmaven.wpi.edu/artifactory/release/' - } -} - dependencies { implementation wpi.java.deps.wpilib() implementation wpi.java.vendor.java() diff --git a/lib/vendordeps/PathplannerLib.json b/lib/vendordeps/PathplannerLib.json deleted file mode 100644 index 7dbcb1f2..00000000 --- a/lib/vendordeps/PathplannerLib.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "fileName": "PathplannerLib.json", - "name": "PathplannerLib", - "version": "2025.2.1", - "uuid": "1b42324f-17c6-4875-8e77-1c312bc8c786", - "frcYear": "2025", - "mavenUrls": [ - "https://3015rangerrobotics.github.io/pathplannerlib/repo" - ], - "jsonUrl": "https://3015rangerrobotics.github.io/pathplannerlib/PathplannerLib.json", - "javaDependencies": [ - { - "groupId": "com.pathplanner.lib", - "artifactId": "PathplannerLib-java", - "version": "2025.2.1" - } - ], - "jniDependencies": [], - "cppDependencies": [ - { - "groupId": "com.pathplanner.lib", - "artifactId": "PathplannerLib-cpp", - "version": "2025.2.1", - "libName": "PathplannerLib", - "headerClassifier": "headers", - "sharedLibrary": false, - "skipInvalidPlatforms": true, - "binaryPlatforms": [ - "windowsx86-64", - "linuxx86-64", - "osxuniversal", - "linuxathena", - "linuxarm32", - "linuxarm64" - ] - } - ] -} \ No newline at end of file diff --git a/limelight/build.gradle b/limelight/build.gradle index 3b88862e..3354e674 100644 --- a/limelight/build.gradle +++ b/limelight/build.gradle @@ -11,10 +11,6 @@ idea { } } -repositories { - mavenCentral() -} - dependencies { implementation wpi.java.deps.wpilib() implementation wpi.java.vendor.java() diff --git a/testing/build.gradle b/testing/build.gradle index 2656b7db..35a57d43 100644 --- a/testing/build.gradle +++ b/testing/build.gradle @@ -5,15 +5,6 @@ plugins { version = '1.0.0-alpha.1' -repositories { - // Use Maven Central for resolving dependencies. - mavenCentral() - maven { - // WPI - url 'https://frcmaven.wpi.edu/artifactory/release/' - } -} - dependencies { implementation wpi.java.deps.wpilib() implementation wpi.java.vendor.java() From 169ddf048675e9d69eb33e99b21fb939488d6f78 Mon Sep 17 00:00:00 2001 From: Kevin Cooney Date: Thu, 2 Oct 2025 20:09:00 -0700 Subject: [PATCH 2/2] Remove maven repo URL for PathPlanner --- build.gradle | 4 ---- 1 file changed, 4 deletions(-) diff --git a/build.gradle b/build.gradle index 91f33473..6235c730 100644 --- a/build.gradle +++ b/build.gradle @@ -13,9 +13,5 @@ allprojects { // REV Robotics url 'https://maven.revrobotics.com/' } - maven { - // PathPlanner - url 'https://3015rangerrobotics.github.io/pathplannerlib/repo' - } } } \ No newline at end of file