Internal dependencies not getting resolved by gradle

I am converting project from maven to Gradle and getting following error.

Error:
Couldn't not resolve com.wellsfargo.lendingGrid:base-pom:Release

I understood the problem that is
In Maven pom.xml, following dependency is mentioned and it’s internal dependency is as given as follows,

<dependency>   
    <groupId>xxx.xxx.xxx</groupId>
    <artifactId>lgrid-encryption</artifactId>
    <exclusions>
        <exclusion>
            <groupId>org.bouncycastle</groupId>
            <artifactId>bcprov-jdk15on</artifactId>
        </exclusion>
    </exclusions>
    <version>1.0.3</version>
</dependency>

Internal dependency of above artifact:
Internal dependency

<modelVersion>4.0.0</modelVersion>
<artifactId>lgrid-encryption</artifactId>
<version>1.0.3</version>
<name>lgrid-encryption</name>
<description>lgrid-encryption</description>
<parent>
    <groupId>xxx.xxx.xxx</groupId>
    <artifactId>base-pom</artifactId>
    <version>RELEASE</version>
</parent>

it is unable to resolve internal dependency who version is “RELEASE”
In Maven “RELASE” is replace with parent version and it fetches that artifact from repository but in Gradle, it is looking for artifact “com.wellsfargo.lendingGrid:base-pom:Release”.
Actually it should replace “RELASE” with parent version and then it has to fetch from artifactory.
Can anyone please tell me how to resolve this issue?

I attached screenshot as text I pasted is not showing properly

It is the dependency which is mentioned in pom.xml

Internal dependency:

Please never anywhere share screenshots (or even worse photographs) of text if you only want to share the text and not something additional like colors or IDE annotations. Text in images is hard to read, especially on mobile, very hard to copy, and nearly impossible to search for. Instead you should use proper formatting options, then it is properly readable, see my edit above.

Afair RELEASE should not “use the version of the parent” as it is used as the version for of the parent, but it should mean something like “latest version” or something like that. I thought this was removed from Maven 3 though, but I might remember wrongly. If this is interpreted wrongly by Gradle, you should probably open a bug report about it. If it would be the version of a dependency you could use a component metadata rule to fix up the metadata, but as it is in the coordinates of the parent POM, I don’t remember a way to work-around this from the build side.

1 Like

How to open bug report with Gradle?