Rename a dependency when downloaded from artifactory


(George Anim-Ansah) #1

My scenario is thus:
I have to integrate with a 3rd application using jars they have supplied. I’ve upload the jars to artifactory (with my own version number applied). I now download the jar with the version number appended to the jar name, as is the norm. However, it turns out that the 3rd party application looks for the exact jar file name they supplied me in their application, which means I get class not found exceptions from the application.
Just to illustrate the point…
I get a jar called acdc.jar and upload to artifactory with group name as com.aa and version as 1.0
I download it using
dependencies {
compile(‘com.aa:acdc:1.0’)
…more dependencies…
}

Now what I need to do is rename the acdc-1.0.jar back to acdc.jar - whats the best way of doing this please?