By now, I'm able to answer my own original questions:
task zip(type: Zip) {
classifier = 'all'
from sourceSets.all.allSource
}
On 17.10.2010, at 23:34, Steve Ebersole wrote:
> If I'm understand what y'all are asking :)
>
> On Sunday, October 17, 2010, at 04:22 pm, Robert Fischer wrote:
>> For real? It's that easy?
>>
>> ~~ Robert.
>>
>> On 17 October 2010 11:04, Steve Ebersole <[email protected]> wrote:
>>> https://loom.svn.sourceforge.net/svnroot/loom/shared/trunk/artifacts.grad
>>> le
>>>
>>> On Saturday, October 16, 2010, at 10:16 am, Robert Fischer 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
>>>
>>> ---
>>> Steve Ebersole <[email protected]>
>>> http://hibernate.org
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe from this list, please visit:
>>>
>>> http://xircles.codehaus.org/manage_email
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>> http://xircles.codehaus.org/manage_email
>
> ---
> Steve Ebersole <[email protected]>
> http://hibernate.org
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
Etienne Studer
Senior Software Developer
Canoo Engineering AG
Kirschgartenstrasse 5
CH-4051 Basel
T +41 61 228 94 44
F +41 61 228 94 49
[email protected]
www.canoo.com
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email