Hello,
I’m part of a team that is developing a plugin for our micro-services to use.
We wanted to upgrade our micro-services as well as this Plugin to the latest 6.x version of Gradle coming from version 5.6.4.
After upgrading the Gradle version in the plugin repository and trying to use it in our “pilot-service” I’m getting the following error:
A problem occurred configuring project ':api'.
> Could not resolve all artifacts for configuration ':api:classpath'.
> Could not find com.fasterxml.jackson.datatype:jackson-datatype-jsr310:.
Required by:
project :api > com.mycompany:myplugin:2.0.0-SNAPSHOT
> Could not find com.fasterxml.jackson.module:jackson-module-kotlin:.
Required by:
project :api > com.mycompany:myplugin:2.0.0-SNAPSHOT
> Could not find org.springframework:spring-web:.
Required by:
project :api > com.mycompany:myplugin:2.0.0-SNAPSHOT
> Could not find org.springframework:spring-test:.
Required by:
project :api > com.mycompany:myplugin:2.0.0-SNAPSHOT
> Could not find org.springframework:spring-webmvc:.
Required by:
project :api > com.mycompany:myplugin:2.0.0-SNAPSHOT
> Could not find org.springframework.hateoas:spring-hateoas:.
Required by:
project :api > com.mycompany:myplugin:2.0.0-SNAPSHOT
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
After some googling back and forth and searching in the forms here I couldn’t find a solution.
Most of the suggestions are specifying to check the repositories’ locations. The repositories location hasn’t changed and also before publishing it (even as a SNAPSHOT) I’m checking it locally with mavenLocal()
.
I did go through the steps in the Gradle migration guide but didn’t find anything similar to this issue.
I did verify that the Artifacts exists in my local maven folder and also in the our custom repositories in Jfrog Artifactory.
This issue happens on a Mac OS machine as well as Windows.
I’m 95+% sure this is regarding some configuration which is set up in the plugin but we didn’t change anything in it when Upgrading the Gradle version.
Could someone please assist?