Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-2910

Uploading to an ivy repository via SSH has been deprecated in Gradle 1.8

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0-rc-1

      Description

      Upgrading to Gradle 1.8 gives following warning: "The ArtifactRepositoryContainer.add(DependencyResolver, Closure) method has been deprecated and is scheduled to be removed in Gradle 2.0." - don't know how to add Ivy SSH publisher (type org.apache.ivy.plugins.resolver.SshResolver) to repositories.

      Currently I'm adding this SSH resolver to the repositories the artifact should get published to like so:

      uploadArchives {
      repositories {
      add( new org.apache.ivy.plugins.resolver.SshResolver() ) {
      name = 'publish-repository'
      host = 'some.host'
      user = 'some.user'
      keyFile = someKeyFile
      keyFilePassword = 'key.file.password'
      checksums = 'sha1, md5'
      addIvyPattern '~/ivy-repository/[organisation]/[module]/[revision]/ivy.xml'
      addArtifactPattern '~/ivy-repository/[organisation]/[module]/[revision]/[artifact](-[classifier]).[ext]'
      }
      }
      }

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            forums Gradle Forums
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: