From 10673861f3175db0a0fd43b5c090b9df956030aa Mon Sep 17 00:00:00 2001 From: Sam Carlberg Date: Sat, 7 Sep 2024 12:27:16 -0400 Subject: [PATCH] Add epilogue support Use the new wpilibAnnotations() dependency group, which includes epilogue The runtime is included in the existing wpilib() group, so only the annotation processors need to be added --- vscode-wpilib/resources/gradle/java/build.gradle | 1 + vscode-wpilib/resources/gradle/javadt/build.gradle | 1 + vscode-wpilib/resources/gradle/javaromi/build.gradle | 1 + vscode-wpilib/resources/gradle/javaxrp/build.gradle | 1 + 4 files changed, 4 insertions(+) diff --git a/vscode-wpilib/resources/gradle/java/build.gradle b/vscode-wpilib/resources/gradle/java/build.gradle index 4c153a21..591e0974 100644 --- a/vscode-wpilib/resources/gradle/java/build.gradle +++ b/vscode-wpilib/resources/gradle/java/build.gradle @@ -50,6 +50,7 @@ def includeDesktopSupport = false // Defining my dependencies. In this case, WPILib (+ friends), and vendor libraries. // Also defines JUnit 5. dependencies { + annotationProcessor wpi.java.deps.wpilibAnnotations() implementation wpi.java.deps.wpilib() implementation wpi.java.vendor.java() diff --git a/vscode-wpilib/resources/gradle/javadt/build.gradle b/vscode-wpilib/resources/gradle/javadt/build.gradle index e6605440..a00c5323 100644 --- a/vscode-wpilib/resources/gradle/javadt/build.gradle +++ b/vscode-wpilib/resources/gradle/javadt/build.gradle @@ -13,6 +13,7 @@ def ROBOT_MAIN_CLASS = "###ROBOTCLASSREPLACE###" // Defining my dependencies. In this case, WPILib (+ friends), and vendor libraries. // Also defines JUnit 5. dependencies { + annotationProcessor wpi.java.deps.wpilibAnnotations() implementation wpi.java.deps.wpilib() nativeDebug wpi.java.deps.wpilibJniDebug(wpi.platforms.desktop) diff --git a/vscode-wpilib/resources/gradle/javaromi/build.gradle b/vscode-wpilib/resources/gradle/javaromi/build.gradle index 1c91a5ac..305f6afc 100644 --- a/vscode-wpilib/resources/gradle/javaromi/build.gradle +++ b/vscode-wpilib/resources/gradle/javaromi/build.gradle @@ -16,6 +16,7 @@ def includeDesktopSupport = true // Defining my dependencies. In this case, WPILib (+ friends), and vendor libraries. // Also defines JUnit 5. dependencies { + annotationProcessor wpi.java.deps.wpilibAnnotations() implementation wpi.java.deps.wpilib() implementation wpi.java.vendor.java() diff --git a/vscode-wpilib/resources/gradle/javaxrp/build.gradle b/vscode-wpilib/resources/gradle/javaxrp/build.gradle index d4380cae..7f249bb6 100644 --- a/vscode-wpilib/resources/gradle/javaxrp/build.gradle +++ b/vscode-wpilib/resources/gradle/javaxrp/build.gradle @@ -16,6 +16,7 @@ def includeDesktopSupport = true // Defining my dependencies. In this case, WPILib (+ friends), and vendor libraries. // Also defines JUnit 5. dependencies { + annotationProcessor wpi.java.deps.wpilibAnnotations() implementation wpi.java.deps.wpilib() implementation wpi.java.vendor.java()