Thanks, rene. Rene Groeschke <[email protected]> wrote:
>Hi Merlyn, >the section moved to 34.6.4.1. see >http://gradle.org/0.9.2/docs/userguide/userguide_single.html#sub:multiple_artifacts_per_project > >regards, >René > > >Am 24.01.11 23:43, schrieb Merlyn Albery-Speyer: >> 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 >> > > >-- >------------------------------------ >Rene Groeschke > >[email protected] >http://www.breskeby.com >http://twitter.com/breskeby >------------------------------------ > > >--------------------------------------------------------------------- >To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > >
