Multiproject build: setting "artifactoryPublish.skip = true" for one module leads to exception


(Michael Voigt) #1

We have a multi-project gradle build and upload all artifacts to Artifactory using the Artifactory gradle plugin. Now we want to exclude one specific module from uploading/publishing and therefore set “artifactoryPublish.skip = true” as it is described in the doc.

I guess the skipping of the analysis works as expected, but in the end the module is trying to be uploaded anyway. Thats why the following error occurs:

FAILURE: Build failed with an exception.
  * What went wrong:
Execution failed for task ':projectName:artifactoryPublish'.
> File '/x/y/z/ivy.xml' does not exists, and need to be published from publication ivy

Any ideas what we might be doing wrong? Or is this even a problem in the Artifactory Gradle plugin?

Regards, Michael