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

the uploadArchives task doesn't upload sources and javadoc jars to an Ivy repository

    XMLWordPrintable

    Details

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

      Description

      When using the following build file the expected behavior is to upload the sources and javadoc jars to an Ivy repository and although the sources and javadoc artifacts are added to the ivy.xml file, the artifacts aren't uploaded to the repository:

      task packageJavadoc(type: Jar, dependsOn: 'javadoc') {
      from javadoc.destinationDir
      classifier = 'javadoc'
      }

      task packageSources(type: Jar) {
      from sourceSets.main.allSource
      classifier = 'sources'
      }

      artifacts {
      archives packageJavadoc
      archives packageSources
      }

      uploadArchives {
      uploadDescriptor = true
      repositories {
      add(new org.apache.ivy.plugins.resolver.SshResolver())

      { name = 'repos' publishPermissions = '0666' addIvyPattern '/wic/web/repos/[organisation]/[module]/ivys/ivy-[revision].xml' addArtifactPattern '/wic/web/repos/[organisation]/[module]/[type]s/[artifact]-[revision].[ext]' user = 'redacted' userPassword = 'redacted' host = "redacted" }

      }
      }

        Attachments

          Activity

            People

            Assignee:
            hans_d Hans Dockter
            Reporter:
            mjparme Michael Parmeley
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: