2022-12-16 17:05:23 -08:00
|
|
|
plugins {
|
2023-10-25 20:27:56 -04:00
|
|
|
id 'edu.wpi.first.WpilibTools' version '1.3.0'
|
2022-12-16 17:05:23 -08:00
|
|
|
}
|
|
|
|
|
|
2021-10-18 22:31:18 -04:00
|
|
|
import java.nio.file.Path
|
2021-01-16 20:41:47 -08:00
|
|
|
|
2021-01-18 22:12:57 -05:00
|
|
|
apply from: "${rootDir}/shared/common.gradle"
|
2021-01-14 21:45:26 -05:00
|
|
|
|
|
|
|
|
dependencies {
|
2021-01-16 20:41:47 -08:00
|
|
|
implementation project(':photon-targeting')
|
|
|
|
|
|
2023-10-10 05:06:59 -04:00
|
|
|
implementation "io.javalin:javalin:$javalinVersion"
|
2021-01-14 21:45:26 -05:00
|
|
|
|
2022-01-08 10:17:28 -08:00
|
|
|
implementation 'org.msgpack:msgpack-core:0.9.0'
|
|
|
|
|
implementation 'org.msgpack:jackson-dataformat-msgpack:0.9.0'
|
2021-01-14 21:45:26 -05:00
|
|
|
|
|
|
|
|
// JOGL stuff (currently we only distribute for aarch64, which is Pi 4)
|
|
|
|
|
implementation "org.jogamp.gluegen:gluegen-rt:$joglVersion"
|
|
|
|
|
implementation "org.jogamp.jogl:jogl-all:$joglVersion"
|
|
|
|
|
|
|
|
|
|
implementation "org.jogamp.gluegen:gluegen-rt:$joglVersion:natives-linux-aarch64"
|
|
|
|
|
implementation "org.jogamp.jogl:jogl-all:$joglVersion:natives-linux-aarch64"
|
|
|
|
|
|
|
|
|
|
// Zip
|
2021-11-21 17:22:56 -08:00
|
|
|
implementation 'org.zeroturnaround:zt-zip:1.14'
|
2022-12-27 10:47:20 -08:00
|
|
|
|
|
|
|
|
implementation wpilibTools.deps.wpilibJava("apriltag")
|
2023-06-17 21:47:18 -07:00
|
|
|
|
|
|
|
|
implementation "org.xerial:sqlite-jdbc:3.41.0.0"
|
2021-01-14 21:45:26 -05:00
|
|
|
}
|
2021-01-16 20:41:47 -08:00
|
|
|
|
|
|
|
|
task writeCurrentVersionJava {
|
2022-01-24 12:38:45 -05:00
|
|
|
def versionFileIn = file("${rootDir}/shared/PhotonVersion.java.in")
|
|
|
|
|
writePhotonVersionFile(versionFileIn, Path.of("$projectDir", "src", "main", "java", "org", "photonvision", "PhotonVersion.java"),
|
2021-10-18 22:31:18 -04:00
|
|
|
versionString)
|
2021-01-16 20:41:47 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
build.dependsOn writeCurrentVersionJava
|