Publishing artifacts to more than 1 repository


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…



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

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


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.