Robert, you still want that plugin code?, Apart from the source archiving (already published) it is doing rather specific build setup stuff. It seems like you've got what you wanted from this discussion :) Happy to share it, but don't want to spam this list with unwanted stuff. regards gretar
On Sat, Oct 16, 2010 at 3:16 PM, Robert Fischer < [email protected]> wrote: > Gretar- > > Mind sharing that plugin? I was hoping there was something that would > produce source and doc archives for me. > > ~~ Robert. > > On 15 October 2010 11:19, Gretar Arnason <[email protected]> wrote: > > I'm using the following in a Plugin extending 'java' plugin for 0.9-rc-1 > - > > uploading to a maven repo: > > > > void apply(Project target){ > > ... > > target.task(['type': Zip], 'sourceJar') { > > baseName = baseName + "-src" > > extension = 'jar' > > from target.sourceSets.main.java, > > target.sourceSets.main.resources > > } > > > > target.artifacts { > > archives(target.sourceJar) {classifier = 'sources'} > > } > > ... > > } > > > > > > should be translatable to a build.gradle script > > regards > > gretar > > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > >
