Re: Changes to concatenate and transform file contents when merging jars

2017-07-30 Thread Antoine Toulme
To be complete, this came from my experience around Kotlin.

Here is the project I have created working with Kotlin, ,making a Spring boot 
executable jar.
https://github.com/atoulme/cuteuuidgenerator/blob/master/Buildfile 


Note the project also comes with a gradle build file so you can compare!

> On Jul 30, 2017, at 8:33 PM, Antoine Toulme  wrote:
> 
> This is the equivalent - albeit in a more generic way - to the resource 
> transformers of the Maven shade plugin:
> https://maven.apache.org/plugins/maven-shade-plugin/examples/resource-transformers.html
>  
> 
> 
> This also should help with things like the uberjar extension, or in general 
> creating executable, shaded/all-in-one jars.
> 
>> On Jul 30, 2017, at 6:39 PM, Peter Donald  wrote:
>> 
>> I am curious what the use case for this is? Is it mostly merged metadata
>> descriptors of one sort or another?
>> 
>> On Sun, Jul 30, 2017 at 7:08 PM, Antoine Toulme  wrote:
>> 
>>> I have added to the codebase changes to allow concatenating file contents
>>> when merging archives.
>>> 
>>> I am also opening a pull request to do the same thing, but transforming
>>> file contents when they are merged:
>>> 
>>> https://github.com/apache/buildr/pull/28 >> buildr/pull/28>
>>> 
>>> Cheers!
>>> 
>>> Antoine
>> 
>> 
>> 
>> 
>> -- 
>> Cheers,
>> 
>> Peter Donald
> 



Re: Changes to concatenate and transform file contents when merging jars

2017-07-30 Thread Antoine Toulme
This is the equivalent - albeit in a more generic way - to the resource 
transformers of the Maven shade plugin:
https://maven.apache.org/plugins/maven-shade-plugin/examples/resource-transformers.html
 


This also should help with things like the uberjar extension, or in general 
creating executable, shaded/all-in-one jars.

> On Jul 30, 2017, at 6:39 PM, Peter Donald  wrote:
> 
> I am curious what the use case for this is? Is it mostly merged metadata
> descriptors of one sort or another?
> 
> On Sun, Jul 30, 2017 at 7:08 PM, Antoine Toulme  wrote:
> 
>> I have added to the codebase changes to allow concatenating file contents
>> when merging archives.
>> 
>> I am also opening a pull request to do the same thing, but transforming
>> file contents when they are merged:
>> 
>> https://github.com/apache/buildr/pull/28 > buildr/pull/28>
>> 
>> Cheers!
>> 
>> Antoine
> 
> 
> 
> 
> -- 
> Cheers,
> 
> Peter Donald



Re: Changes to concatenate and transform file contents when merging jars

2017-07-30 Thread Peter Donald
I am curious what the use case for this is? Is it mostly merged metadata
descriptors of one sort or another?

On Sun, Jul 30, 2017 at 7:08 PM, Antoine Toulme  wrote:

> I have added to the codebase changes to allow concatenating file contents
> when merging archives.
>
> I am also opening a pull request to do the same thing, but transforming
> file contents when they are merged:
>
> https://github.com/apache/buildr/pull/28  buildr/pull/28>
>
> Cheers!
>
> Antoine




-- 
Cheers,

Peter Donald