-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error > Failed to apply plugin class 'edu.wpi.first.gradlerio.wpi.WPIPlugin'.
#727
Comments
Please run gradlew with the —-stacktrace option. And yes, posting a copy of your project including vendordeps would enable us to try to reproduce. Does the build failure only happen on one computer? |
Haven't tested on other computers. Here is the failing project https://github.com/spacey-sooty/VendordepTesting
here is the stacktrace output as well. Don't know if there is an output file I could use in order to send the full stacktrace as it appears to cut off? |
I've added a CI pipeline to the repository for more reproducible builds, gives the same result I get locally as far as I can see |
This is the line that’s failing: And it’s because your vendordep is missing a jniDependencies key. You also need to have a javaDependencies key (even if it contains just an empty list). |
Hmmm ok that makes sense, if that could be documented somewhere and the error message improved that would be good. Could we add a null check here then throw a build exception if its null? I'm not sure where this could be documented. Is there some form of specification for the Vendordeps files? |
I just tested this and confirmed it does work with both of these as empty lists, thanks for the assistance! I'll take a look at providing better error messages for this tomorrow when I get some time. |
Great! Yeah I think this could really benefit from both checking for the null case and catching/rethrowing exceptions that give more context (eg vendordep file name being processed). |
Full error message:
I am getting this error when trying to build my project. I believe it is due to one of my vendordeps being invalid but this error message was rather unhelpful. I'm not sure how this could be improved as I'm not 100% sure what the error is... I can send through info about the vendordeps file etc if required.
The text was updated successfully, but these errors were encountered: