mirror of
https://github.com/PhotonVision/photonvision
synced 2026-07-02 02:51:40 +00:00
Bump spotless version and update config for groovyGradle stuff (#979)
This commit is contained in:
@@ -50,7 +50,9 @@ dependencies {
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
configurations = [project.configurations.runtimeClasspath]
|
||||
configurations = [
|
||||
project.configurations.runtimeClasspath
|
||||
]
|
||||
String name = "photonvision-${project.version}"
|
||||
archiveClassifier.set(wpilibTools.platformMapper.currentPlatform.platformName)
|
||||
archiveBaseName = "photonvision"
|
||||
@@ -81,11 +83,11 @@ copyClientUIToResources.shouldRunAfter runNpmOnClient
|
||||
run {
|
||||
if (project.hasProperty("profile")) {
|
||||
jvmArgs=[
|
||||
"-Dcom.sun.management.jmxremote=true",
|
||||
"-Dcom.sun.management.jmxremote.ssl=false",
|
||||
"-Dcom.sun.management.jmxremote.authenticate=false",
|
||||
"-Dcom.sun.management.jmxremote.port=5000",
|
||||
"-Djava.rmi.server.hostname=0.0.0.0",
|
||||
"-Dcom.sun.management.jmxremote=true",
|
||||
"-Dcom.sun.management.jmxremote.ssl=false",
|
||||
"-Dcom.sun.management.jmxremote.authenticate=false",
|
||||
"-Dcom.sun.management.jmxremote.port=5000",
|
||||
"-Djava.rmi.server.hostname=0.0.0.0",
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -143,7 +145,7 @@ task findDeployTarget {
|
||||
}
|
||||
|
||||
run {
|
||||
environment "PATH_PREFIX", "../"
|
||||
environment "PATH_PREFIX", "../"
|
||||
}
|
||||
|
||||
// task overrideToPi {
|
||||
@@ -159,7 +161,7 @@ task deploy {
|
||||
dependsOn assemble
|
||||
dependsOn findDeployTarget
|
||||
|
||||
doLast {
|
||||
doLast {
|
||||
println 'Starting deployment to ' + findDeployTarget.rmt.host
|
||||
println 'targetArch = ' + wpilibTools.platformMapper.currentPlatform.platformName
|
||||
ssh.run{
|
||||
@@ -170,7 +172,7 @@ task deploy {
|
||||
execute 'sleep 3'
|
||||
// Copy into a folder owned by PI. Mostly because, as far as I can tell, the put command doesn't support sudo.
|
||||
put from: "${projectDir}/build/libs/photonvision-${project.version}-${wpilibTools.platformMapper.currentPlatform.platformName}.jar", into: "/tmp/photonvision.jar"
|
||||
//belt-and-suspenders. Make sure the old jar is gone first.
|
||||
//belt-and-suspenders. Make sure the old jar is gone first.
|
||||
execute 'sudo rm -f /opt/photonvision/photonvision.jar'
|
||||
//Copy in the new .jar and make sure it's executable
|
||||
execute 'sudo mv /tmp/photonvision.jar /opt/photonvision/photonvision.jar'
|
||||
|
||||
Reference in New Issue
Block a user