Deploying wirelessly using Gradlerio Not working

Hello everyone! Currently we’re using the Gradlerio build system for our code this year and all of us can deploy tethered via USB to the roborio perfectly fine. However, whenever we try to deploy via the radio we always get a failure to discover roborio error. I tried deploying a regular wpilib robot project to the roborio wirelessly and that worked without a hitch, so we know the radio is working. Does anyone have any solutions? Thank you in advance

Check your build.gradle file and make sure you’ve set your team number properly in the following lines:

def TEAM = ####
def ROBOT_CLASS = "frc.team####.robot.Robot"

IIRC, you should not have any leading zeros in either line (type 11, not 0011).

First, make sure the ip is configured correctly in the GradleRIO build file.
Here is an example of ours:
deploy {
targets {
target(“roborio”, jaci.openrio.gradle.frc.RoboRIO) {
team = TEAM
addresses << “roborio-2915-frc.local”
}
}
artifacts {
artifact(‘frcJava’, jaci.openrio.gradle.frc.FRCJavaArtifact) {
targets << “roborio”
}
}
}
The next thing I would recommend trying it stoping GradleRIO, or restarting your computer (Which does the same thing). It seems like GradleRIO decides it will only deploy to the first address it finds each time it starts. Restarting your Gradle can be done with:
./Gradle --stop

Let me know if this helps!!

Try updating GradleRIO to 2018.01.22

No I tried stopping gradle and adding the address local which I was missing, and neither worked. Here’s my build.gradle file with the added addresses line:

plugins {
id “java”
id “eclipse”
id “idea”
id “jaci.openrio.gradle.GradleRIO” version “2018.01.22”
}

def TEAM = 0011
def ROBOT_CLASS = “org.mort11.Robot”

// Define my targets (RoboRIO) and artifacts (deployable files)
// This is added by GradleRIO’s backing project EmbeddedTools.
deploy {
targets {
target(“roborio”, jaci.openrio.gradle.frc.RoboRIO) {
team = TEAM
addresses << “roborio-0011-frc.local”
}
}
artifacts {
artifact(‘frcJava’, jaci.openrio.gradle.frc.FRCJavaArtifact) {
targets << “roborio”
}
}
}

// Defining my dependencies. In this case, WPILib (+ friends), CTRE Toolsuite (Talon SRX)
// and NavX.
dependencies {
compile wpilib()
compile ctre()
compile navx()
}

// Setting up my Jar File. In this case, adding all libraries into the main jar (‘fat jar’)
// in order to make them all available at runtime. Also adding the manifest so WPILib
// knows where to look for our Robot Class.
jar {
from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
manifest jaci.openrio.gradle.GradleRIOPlugin.javaManifest(ROBOT_CLASS)
}

task wrapper(type: Wrapper) {
gradleVersion = ‘4.4’
}

That address is automatically added to your roborio target when you set team = TEAM. Also, this is fixed in 2018.01.22

This would suggest a problem with your network. If you’re on windows, try disabling the firewall, or disabling and reenabling your wifi adapter. If the Driver Station can find the RoboRIO but GradleRIO can’t, run ./gradlew deploy --debug and send me the output in an issue on GitHub

Try replacing all instances of 0011 in your build.gradle with 11. The RoboRIO address and team number should not have any leading zeros if I remember correctly.

I missed your initial comment. Yes this absolutely was the issue thank you so much!!! I wish I had tried it sooner