build-info
build-info copied to clipboard
publishPom = false appears to be ignored
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
To workaround the issue add following:
artifactory {
publish {
repository {
maven = false
}
}
}
See org.jfrog.gradle.plugin.artifactory.task.helper.TaskHelper#isPublishMaven
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