I am migrating a project from maven to Gradle.
<parent>
<groupId>com.xxxxxx.unifiedframework</groupId>
<artifactId>uf-soap-parent</artifactId>
<version>2.7.3</version>
</parent>
For the above maven dependency,
It’s Gradle equivalent, I defined in build gradle is as follows.
dependencies {
Implementation(platform ("com.xxxx.unifiedframework:uf-soap-parent:2.7.3"))
}
When I did local build, it’s was successful.
But when I pushed my code to git, Jenkins jobs failing
With following error
What went wrong:
Execution failed for task: 'DecisioningRulesServiceApplication:war'.
Could not resolve all files for configuration 'DecisioningRulesServiceApplication:runtimeClasspath'.
Could not find com.xxxxxx.unifiedframework:uf-soap-parent:2.7.3.
15:31:53 Searched in the following locations:
15:31:53 -
https://artifactory.xxxxx.com/artifactory/maven-external-virtual/com/xxxxx/unifiedframework/uf-soap-parent/2.7.3/uf-soap-parent-2.7.3.jar
From the error, we can say that it’s looking for jar file, but it’s should look for parent pom file.
Note that build was successful in my local, facing issue when the Jenkins jobs run.