After import of 2021 project into 2022 vendordep imports not working

After import of 2021 Java project to 2022 with VSCode, vendordep library imports are not working. Also, the first line in the build.gradle is flagged as an error and the message is:
The supplied phased action failed with an exception.
Could not resolve all dependencies for configuration ‘:compileClasspath’.
Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven repository ‘WPI3f48eb8c-50fe-43a6-9cb7-44c86353c4cb_0Release(http://www.revrobotics.com/content/sw/max/sdk/maven/)’ to redirect to a secure protocol (like HTTPS) or allow insecure protocols. See UrlArtifactRepository - Gradle DSL Version 7.3.3 for more details. Java(0)

The vendordep files are current 2022 with https and correct urls. This was a problem some time ago but was resolved as far as I know, so I’m not sure what is causing this.

Did you initially import 2021 rev libraries (As thats what that URL is pointing to)? VS Code can sometimes not fully refresh things when you remove a library. You can force a full refresh by running the Clean Java Language Server Workspace command in VS Code.

That may have happened. When I run the clean command I get this error:

A problem occurred evaluating root project ‘Sun Swerve Drive Auto’.

No signature of method: build_kecahoqco0mhmcmwrpxbq0b7.deploy() is applicable for argument types: (build_kecahoqco0mhmcmwrpxbq0b7$_run_closure1) values: [build_kecahoqco0mhmcmwrpxbq0b7$_run_closure1@3de0f8f]
Possible solutions: apply(groovy.lang.Closure), apply(java.util.Map), apply(groovy.lang.Closure), apply(java.util.Map), every(), copy(groovy.lang.Closure)

Hmm. You didnt modify build.gradle after the import, right? Because of the rewirte, most things done in 2021 won’t directly work.

No. Maybe I should reimport and make sure the vendordeps are 2022.

Re-import fixed the problem. Not sure why clean didn’t but off we go!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.