Through the Artofactory Plugin UI, it is possible to configure whether to include the Maven and/or Ivy
descriptors (pom.xml or ivi.xml) as part of the deployed build artifacts to Artifactpry.
It is also possible to determine that behavior from within the gradle script itself, as part of the "artifactory" closure DSL by using the 2 properties:
publishPom = false
publishIvy = true
(this is to support this behavior by using the Gradle Artifactory Plugin without a CI server).
The desired behavior is that the plugin UI always overrides the DSL configuration, the same way it works for the configured Artifactory
repositories, meaning that if you do not check the "Publish Maven descriptors" or "Publish Ivy descriptors" check boxes in the UI, the descriptors
will not be published and vice versa.
The fix makes sure this behavior is implemented in all the following scenarios:
1. When the job is configured with "Project uses the Artifactory Gradle Plugin" checked and:
a. The gradle script uses publications.
b, The gradle script uses configurations.
2. When the job is configured with "Project uses the Artifactory Gradle Plugin" NOT checked.