Bump spotless version and update config for groovyGradle stuff (#979)

This commit is contained in:
Sriman Achanta
2023-10-24 23:02:59 -04:00
committed by GitHub
parent df45bc2d73
commit adc30336d2
13 changed files with 97 additions and 47 deletions

View File

@@ -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'