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')
|
|
|
|
|
|
2022-01-08 10:17:28 -08:00
|
|
|
implementation 'io.javalin:javalin:4.2.0'
|
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
|
|
|
|
2021-01-18 22:12:57 -05:00
|
|
|
// wpiutil
|
2021-12-18 12:53:08 -05:00
|
|
|
jniPlatforms.each { implementation "edu.wpi.first.wpiutil:wpiutil-jni:$wpilibVersion:$it" }
|
2021-01-17 14:57:21 -08:00
|
|
|
|
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'
|
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
|