From 4104549b3366e55eadee4c9ba737d6a184f611c8 Mon Sep 17 00:00:00 2001 From: Arnav495 Date: Fri, 16 Jan 2026 17:19:23 -0800 Subject: [PATCH] Fix AdvantageKit. --- build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build.gradle b/build.gradle index 8f6e6fc..1f516b7 100644 --- a/build.gradle +++ b/build.gradle @@ -51,6 +51,11 @@ wpi.java.debugJni = false // Set this to true to enable desktop support. def includeDesktopSupport = false +task(replayWatch, type: JavaExec) { + mainClass = "org.littletonrobotics.junction.ReplayWatch" + classpath = sourceSets.main.runtimeClasspath +} + // Defining my dependencies. In this case, WPILib (+ friends), and vendor libraries. // Also defines JUnit 5. dependencies { @@ -76,6 +81,9 @@ dependencies { testImplementation 'org.junit.jupiter:junit-jupiter:5.10.1' testRuntimeOnly 'org.junit.platform:junit-platform-launcher' + + def akitJson = new groovy.json.JsonSlurper().parseText(new File(projectDir.getAbsolutePath() + "/vendordeps/AdvantageKit.json").text) + annotationProcessor "org.littletonrobotics.akit:akit-autolog:$akitJson.version" } test { -- 2.39.5