build-info icon indicating copy to clipboard operation
build-info copied to clipboard

publishPom = false appears to be ignored

Open ykne opened this issue 7 years ago • 2 comments

According to https://www.jfrog.com/confluence/display/RTF/Gradle+Artifactory+Plugin there is a setting publishPom = false which can be used to disable pom publishing. However it has no effect whatsoever. Looking at the class org.jfrog.gradle.plugin.artifactory.task.ArtifactoryTask and its parent org.jfrog.gradle.plugin.artifactory.task.BuildInfoBaseTask I don't see any code which calls org.jfrog.gradle.plugin.artifactory.task.BuildInfoBaseTask.getPublishPom() debugger shows that method is not called and pom is always published. I found that a similar question is asked on stackoverflow. I am looking at tags/build-info-gradle-extractor-4.5.4

ykne avatar Dec 22 '17 20:12 ykne

To workaround the issue add following:

artifactory {
  publish {
    repository {
       maven = false
    }
 }
}

See org.jfrog.gradle.plugin.artifactory.task.helper.TaskHelper#isPublishMaven

DmPanov avatar Jun 22 '18 09:06 DmPanov

Any update on this - the workaround didn't work for me although admittedly I was trying to override "maven=false" in a sub-project which may or may not be supported

frankjkelly avatar Jun 08 '20 20:06 frankjkelly