mirror of
https://github.com/Astatin3/Vision-Minibot.git
synced 2026-06-08 16:18:02 -06:00
Work on adding advantagekit
This commit is contained in:
+22
-2
@@ -1,6 +1,7 @@
|
||||
plugins {
|
||||
id "java"
|
||||
id "edu.wpi.first.GradleRIO" version "2025.1.1-beta-2"
|
||||
id "edu.wpi.first.GradleRIO" version "2025.3.2"
|
||||
id "com.peterabeles.gversion" version "1.10"
|
||||
}
|
||||
|
||||
java {
|
||||
@@ -34,7 +35,7 @@ deploy {
|
||||
files = project.fileTree('src/main/deploy')
|
||||
directory = '/home/lvuser/deploy'
|
||||
deleteOldFiles = false // Change to true to delete files on roboRIO that no
|
||||
// longer exist in deploy directory on roboRIO
|
||||
// longer exist in deploy directory of this project
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -72,6 +73,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 {
|
||||
@@ -102,3 +106,19 @@ wpi.java.configureTestTasks(test)
|
||||
tasks.withType(JavaCompile) {
|
||||
options.compilerArgs.add '-XDstringConcat=inline'
|
||||
}
|
||||
|
||||
task(replayWatch, type: JavaExec) {
|
||||
mainClass = "org.littletonrobotics.junction.ReplayWatch"
|
||||
classpath = sourceSets.main.runtimeClasspath
|
||||
}
|
||||
|
||||
// Create version file
|
||||
project.compileJava.dependsOn(createVersionFile)
|
||||
gversion {
|
||||
srcDir = "src/main/java/"
|
||||
classPackage = "frc4388.robot.constants"
|
||||
className = "BuildConstants"
|
||||
dateFormat = "yyyy-MM-dd HH:mm:ss z"
|
||||
timeZone = "America/Denver"
|
||||
indent = " "
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user