Skip to content

publishPom = false appears to be ignored #144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ykne opened this issue Dec 22, 2017 · 2 comments
Open

publishPom = false appears to be ignored #144

ykne opened this issue Dec 22, 2017 · 2 comments

Comments

@ykne
Copy link

ykne commented Dec 22, 2017

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

@DmPanov
Copy link

DmPanov commented Jun 22, 2018

To workaround the issue add following:

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

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

@frankjkelly
Copy link

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

RobiNino pushed a commit to RobiNino/build-info that referenced this issue Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants