Skip to content

Commit

Permalink
Fix WPI imports and MAYBE fix advantagekit, must test out of codespac…
Browse files Browse the repository at this point in the history
…e to confirm
  • Loading branch information
aidnem committed Nov 7, 2024
1 parent c8b81bb commit 7db95ab
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions wpi_interface/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7db95ab

Please sign in to comment.