mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-22 01:11:40 +00:00
Cleanup project-wide gradle configuration.
removes native dependencies from java only projects
increases readability
Pass generated headers in setup instead of modifying model
25 lines
875 B
Groovy
25 lines
875 B
Groovy
import java.nio.file.Path
|
|
|
|
apply from: "${rootDir}/shared/common.gradle"
|
|
|
|
dependencies {
|
|
// 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
|
|
implementation 'org.zeroturnaround:zt-zip:1.14'
|
|
|
|
implementation "org.xerial:sqlite-jdbc:3.41.0.0"
|
|
}
|
|
|
|
task writeCurrentVersion {
|
|
def versionFileIn = file("${rootDir}/shared/PhotonVersion.java.in")
|
|
writePhotonVersionFile(versionFileIn, Path.of("$projectDir", "src", "main", "java", "org", "photonvision", "PhotonVersion.java"),
|
|
versionString)
|
|
}
|
|
|
|
build.dependsOn writeCurrentVersion
|