Uploaded image for project: 'Gradle Artifactory Plug-in'
  1. Gradle Artifactory Plug-in
  2. GAP-172

Cannot set 'publishPom' as part of the artifactoryPublish task

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: 4 - Normal
    • Resolution: Done
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.1.1
    • Labels:
      None

      Description

      When configuring the artifactoryPublish task directly (not by configuring the "artifactory" closure) as follows:

          artifactoryPublish {
              publications(publishing.publications.ivyJava)
              properties {
                  simpleFile '**:**:**:*@*', simpleFile: 'only on settings file'
              }
      		publishPom = false
      		publishIvy = true
      		publishArtifacts = false
          }
      

      the build fails with the following error:

      Cannot set the value of read-only property 'publishPom' on task ':artifactoryPublish'.

        Attachments

          Activity

            People

            Assignee:
            eyalbe Eyal Ben David
            Reporter:
            eyalbe Eyal Ben David
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: