How to publish different artifacts created in one project into different Artifactory repositories

If it works for your situation, you might be able to disable the publish tasks you do not need while keeping everything in a single build file. Something similar to this thread.