Publishing artifacts to more than 1 repository

(radhakrishnand) #1


In the same build process, can we post artifacts to two different repositories ?

Eg:: jar should go to one repository in artifactory and property files should go to another repository in artifacory…



(Luke Daley) #2

Yes, you can publish as many different artifacts to as many different repositories as you need.

(radhakrishnand) #3

HI, can you please give a small example of how to do that.


(Luke Daley) #4

Inside the upload task, you can list as many repositories as you need inside the ‘repositories’ block. I’m not sure what level to pitch this information at as you haven’t given any information at all about your project or Gradle knowledge.