How can I customise the uploaded path and filename when publishing Artefacts to generic repositories in Artifactory?

Hi folks,

I’m trying to use the Artifactory plugin to upload an artefact to a “generic” style repository in our Artifactory instance. This repository doesn’t follow any of the usual Maven/ Gradle/ Ivy naming conventions so I’m trying to configure the Artifactory plugin to just simply upload a file. Unfortunately it seems to want to enforce the usual Maven naming conventions and is using the groupId, artifactId etc to generate both the upload path and the filename.

I have scoured the docs and some of the plugin sourcecode but can’t find any way to override this behaviour.

I’m starting to think I’m going to have to implement some sort of basic HTTP client myself to do the upload, which I’m hesitant to do as one would think that the Artifactory plugin was designed to work with Artifactory without this sort of headache!

Anyone have any experience of this?

Many thanks!