Hi all,

I've been struggling to produce two onejar artifacts from
gradle-managed project. The error I get is:

Caused by: org.gradle.api.InvalidUserDataException: A POM cannot have
multiple artifacts with the same type and classifier. Already have
MavenArtifact alerts:jar:jar:null, trying to add MavenArtifact
alerts:jar:jar:null.
        at 
org.gradle.api.internal.artifacts.publish.maven.deploy.DefaultArtifactPom.addArtifact(DefaultArtifactPom.java:69)

There was a "29.5.4.2. Multiple artifacts per project" section in the
Gradle 0.8 documentation that is no longer present in Gradle 0.9. Is
this the right way to be going about it for Gradle 0.9?

task oneJarHarvester(type: Jar) {
...
}

task oneJarOverlord(type: Jar) {
...
}

artifacts {
  archives oneJarOverlord
  archives oneJarHarvester
}

uploadArchives {
  repositories.mavenDeployer {
    repository(url: "scp://thefullurl") {
      authentication(userName: "theusername", password: "thepassword")
    }
}

Cheers,
Merlyn

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to