mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-19 00:41:41 +00:00
We now need platform specific jars -- reworks actions to support that. Currently only generates 32 bit pi images.
29 lines
841 B
Groovy
29 lines
841 B
Groovy
task copyPhotonlib() {
|
|
doFirst {
|
|
// Assume publish to maven local has just be run. Kinda curst
|
|
// // first, invoke gradle to generate the vendor json
|
|
// try {
|
|
// exec {
|
|
// commandLine 'gradlew', 'photon-lib:generateVendorJson', '-x', "check"
|
|
// }
|
|
// } catch (Exception e) {
|
|
// // ignored
|
|
// }
|
|
|
|
def vendorJsonSrc = new File("${rootDir}", "../photon-lib/build/generated/vendordeps/");
|
|
def vendorJsonDst = new File("${projectDir}/vendordeps/");
|
|
|
|
delete(fileTree(vendorJsonDst) {
|
|
exclude '.gitignore'
|
|
})
|
|
|
|
println("Copying from ${vendorJsonSrc} to ${vendorJsonDst}")
|
|
|
|
copy {
|
|
from vendorJsonSrc
|
|
into vendorJsonDst
|
|
}
|
|
}
|
|
outputs.upToDateWhen { false }
|
|
}
|