I am migrating a project from Maven to Gradle and everything seems to be going well. I am however, getting caught up on a particular dependency.
In maven pom.xml the dependency was included as such:
<dependency>
<groupId>com.company</groupId>
<artifactId>models</artifactId>
<version>1.0.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/libs/models-templates-1.0.0.jar</systemPath>
</dependency>
I have been looking into how to achieve something like this in gradle and haven't found a clear answer.
I thought I would need to first download the entire directory and extract the dependency so I started looking at this solution: How to add local .jar file dependency to build.gradle file?
However, after looking into what is happening a little more I've found that I actually need to declare an alternative jar name to download. So I still need it to look in the correct "models" group name but I need to download the "models-tempaltes" jar instead.
thank you.