Lately my team has been having some trouble deploying code to the robot. Every time we deploy the code we get an error message like this:
Executing task: gradlew deploy -PteamNumber=1572 -Dorg.gradle.java.home=“C:\Users\Public\frc2019\jdk” <
Task :discoverRoborio
Discovering Target roborio
Using [email protected]:22 for target roborio
Task :deployNativeLibsRoborio
Artifact skipped…
Task :deployJreRoborio
-C-> if [[ -f “/usr/local/frc/JRE/bin/java” ]]; then echo OK; else echo MISSING; fi @ /tmp
-[0]-> OK
Artifact skipped…
Task :deployRoborioCommandsRoborio
-C-> sed -i -e ‘s/^StartupDLLs/;StartupDLLs/’ /etc/natinst/share/ni-rt.ini @ /home/lvuser
-[-1]->
Task :deployFrcStaticFileDeployRoborio
-C-> mkdir -p @ /home/lvuser/deploy
-[-1]->
Task :deployFrcJavaRoborio FAILED
-C-> . /etc/profile.d/natinst-path.sh; /usr/local/frc/bin/frcKillRobot.sh -t 2> /dev/null @ /home/lvuser
Task :deployNativeZipRoborio
42 file(s) are up-to-date and were not deployed
-C-> chmod -R 777 “/usr/local/frc/third-party/lib” || true; chown -R lvuser:ni “/usr/local/frc/third-party/lib” @ /usr/local/frc/third-party/lib
-[-1]->
-C-> ldconfig @ /usr/local/frc/third-party/lib
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:deployFrcJavaRoborio’.
A failure occurred while executing jaci.gradle.deploy.artifact.ArtifactDeployWorker
Java heap space
-
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. -
Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use ‘–warning-mode all’ to show the individual deprecation warnings.
See https://docs.gradle.org/5.0/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 11s
12 actionable tasks: 8 executed, 4 up-to-date
The terminal process terminated with exit code: 1
At first I thought the problem was with the java heap space message, as we were using grip for vision witch may cause a memory storage issue. After commenting out that code, we still had the same issue. The JRE is up to date, the Roborio is properly imaged. The only thing which may be a problem is with gradle, but the current gradle version si 5.11 not 6.0 as the error suggests, any solutions would be helpful.