diff --git a/wpi_interface/build.gradle b/wpi_interface/build.gradle index c25c8fc..479d50f 100644 --- a/wpi_interface/build.gradle +++ b/wpi_interface/build.gradle @@ -15,14 +15,27 @@ java { // Set this to true to enable desktop support. def includeDesktopSupport = true +configurations.all { + // exclude group: "edu.wpi.first.wpilibj" +} + +task(checkAkitInstall, dependsOn: "classes", type: JavaExec) { + mainClass = "org.littletonrobotics.junction.CheckInstall" + classpath = sourceSets.main.runtimeClasspath +} +compileJava.finalizedBy checkAkitInstall + // Defining my dependencies. In this case, WPILib (+ friends), and vendor libraries. // Also defines JUnit 5. dependencies { def akitJson = new groovy.json.JsonSlurper().parseText(new File(projectDir.getAbsolutePath() + "/vendordeps/AdvantageKit.json").text) annotationProcessor "org.littletonrobotics.akit.junction:junction-autolog:$akitJson.version" + annotationProcessor "org.littletonrobotics.akit.junction:junction-autolog:3.2.1" implementation project(":monitors") + implementation 'org.littletonrobotics.akit.junction:junction-core:3.2.1' implementation 'edu.wpi.first.wpilibj:wpilibj-java:2024.3.2' + implementation 'edu.wpi.first.wpiutil:wpiutil-java:2024.3.2' implementation 'edu.wpi.first.wpilibNewCommands:wpilibNewCommands-java:2024.3.2' testImplementation 'org.junit.jupiter:junit-jupiter:5.10.1' @@ -67,15 +80,6 @@ repositories { gradlePluginPortal() } -// configurations.all { -// exclude group: "edu.wpi.first.wpilibj" -// } - -task(checkAkitInstall, dependsOn: "classes", type: JavaExec) { - mainClass = "org.littletonrobotics.junction.CheckInstall" - classpath = sourceSets.main.runtimeClasspath -} -compileJava.finalizedBy checkAkitInstall spotless { // optional: limit format enforcement to just the files changed by this feature branch