There is a bug in 0.8 that prevents this from working properly but in 0.9 you can simply add:

task sourcesJar(type: Jar, dependsOn:classes) {
    classifier = 'sources'
    from sourceSets.main.allSource
}

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

// This requires gradle 0.9...
artifacts {
    archives sourcesJar
    archives javadocJar
}

Hope it helps.
-Paul

Shay Banon wrote:
Hi,

   I was looking at the docs and could not find it. What is the simplest way
to use the maven plugin to also create javadoc and source artifacts?

cheers,
shay.banon


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

   http://xircles.codehaus.org/manage_email


Reply via email to