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” <
Discovering Target roborio
Using email@example.com:22 for target roborio
-C-> if [[ -f “/usr/local/frc/JRE/bin/java” ]]; then echo OK; else echo MISSING; fi @ /tmp
-C-> sed -i -e ‘s/^StartupDLLs/;StartupDLLs/’ /etc/natinst/share/ni-rt.ini @ /home/lvuser
-C-> mkdir -p @ /home/lvuser/deploy
Task :deployFrcJavaRoborio FAILED
-C-> . /etc/profile.d/natinst-path.sh; /usr/local/frc/bin/frcKillRobot.sh -t 2> /dev/null @ /home/lvuser
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
-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
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.
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.